4 ms·
There seems to be a lesson here about the balance between premature vs. anticipatory optimization. We’re generally warned against premature optimization but per
by divbzero 1y ago
There seems to be a lesson here about the balance between premature vs. anticipatory optimization. We’re generally warned against premature optimization but perhaps, as a rule of thumb, we should look for optimizations in frequently-called functions that are obvious and not onerous to implement.
- Quekid5 1y agoIf a set-of-strings was trivially available in the source language (at time of implementation) the original programmer would probably have done this (relatively) trivial optimization... This is a symptom of anemic languages like C.