3 ms·
That's called memoization, and it works really well in quite a number of places. There are some compilers that can do it automatically with some hints, but I t
by ars 10y ago
That's called memoization, and it works really well in quite a number of places.
There are some compilers that can do it automatically with some hints, but I think they are mostly experimental not production.
- kbenson 10y agoWell, it's half memoization, and half knowing that you can split the work into smaller parts, which allows you to take advantage of the memoization. Just adding memoization to date and time parsing gets you very little when there's little duplication of the inputs, and without the breaking apart of the data could very likely have yielded worse performance.