Re:The world could run on older hardware if software optimiz...
by monkeyelite on Tuesday May 13, 2025 @03:16PM
(#43976542)
You’re describing a situation where I - or a very smart compiler can choose when to bounds check or not to make that intelligent realization.
So very rarely should it be anything like 3-4x the cost, though some complex indexing could cause it to happen, I suppose. I agree scopes are a decent way to handle it!