2 ms·
Most Common Lisp implementations, for what it's worth, take this approach as well. For tight loops where you've removed the invariants and proved its bounds rem
by agentultra 11y ago
Most Common Lisp implementations, for what it's worth, take this approach as well. For tight loops where you've removed the invariants and proved its bounds removing the run-time checks can give a non-trivial performance boost to production systems.
- zurn 11y agoIf you mean the (speed 3 safety 0), it's more in line with pcwalton's idea to have a switch for generally turning off safety checks, not just bounds checks - because the other checks typically affect performance more.
- steveklabnik 11y agoMost of the checks affect compile time performance in a minor way, but also have no runtime overhead. The borrow checker is an entirely compile-time thing, for example.