2 ms·
> index checking is expensive Seems a little gung ho to disable guaranteed index checking in a video codec no? I know you still do the checks, but it sounds li
by IshKebab 7y ago
> index checking is expensive
Seems a little gung ho to disable guaranteed index checking in a video codec no? I know you still do the checks, but it sounds like it's not in a statically guaranteed way.
- MaxBarraclough 7y agoSurely tight loops in performance-sensitive code, are precisely where you'd consider disabling runtime checks, no? You can still have them enabled for debugging, at least. (Something not generally possible in C/C++, sadly.)
- IshKebab 7y agoDepends how much you care about safety, and how much safety is needed. If you're doing an FEA analysis or whatever, fine disable all checking. But a video codec is guaranteed to be used in dangerous environments. Also depends how much it affects performance. It it doubles it, ok I'll accept the risk. 10% faster? No thanks I'd rather play it safe.