3 ms·
There are at least two ways to fail. You can get something wrong from the start, or you can get it right and fail to keep it that way. Perf sensitive code can
by hinkley 7y ago
There are at least two ways to fail. You can get something wrong from the start, or you can get it right and fail to keep it that way.
Perf sensitive code can often be that way. Some innocent coworker comes in to add a feature and they don't get why two idioms are not equivalent from the compiler's perspective, and so they change things.
Meanwhile, you're busy doing something else. The code is still correct from a testing standpoint. It still satisfies your code standards. But it no longer meets your response time expectations. It's a lot of work to maintain the sort of toolchain that lets you reliably spot this sort of thing at build time or even in pre-prod environments, and it's difficult to identify places where those tools are failing to detect problems until there's been a problem.
- weberc2 7y agoI agree with all of this. My proposal addresses exactly this problem for the allocation related bottlenecks. CI will fail if someone introduces an allocation in a noalloc—annotated block.