3 ms·
Doesn't this make Prepack completely unusable? Surely it should try to apply its optimizations to each block of code, and for each block where the "optimized" v
by developer2 9y ago
Doesn't this make Prepack completely unusable? Surely it should try to apply its optimizations to each block of code, and for each block where the "optimized" version results in more lines of code - or perhaps better, more operations - the optimizations are thrown out, keeping that block of code untouched?
It makes no sense to use an optimization tool that does the exact opposite in cases it cannot handle. In no world is 1400 lines better than 10.
- lexicality 9y ago"Prepack is still in an early development stage and not ready for production use just yet. Please try it out, give feedback, and help fix bugs."
- Francute 9y agoWell, if you have 1400 lines of 100 prime numbers each one, and a last line to retrieve one of them, if i ask for the 140.000 prime, that solution would be better (in terms of speed) than 10 lines making calcs for any prime number. If you know the possible range of accepted inputs, 1400 loc would be better than 10. One normally think much more loc is worst than a one line solution, but that's, like most answers, always depends. And that's a simple case. There are lot of similar cases one dont realize.