3 ms·
One of the examples contains a function to calculate the nth fibonacci number, and then a variable uses the result of that function. Prepack doesn't seem to op
by jamescostian 9y ago
One of the examples contains a function to calculate the nth fibonacci number, and then a variable uses the result of that function.
Prepack doesn't seem to optimize for V8 in particular; rather, it just does some calculations ahead of time. V8 cannot possibly do these optimizations. How would it know that e.g. my code tries to calculate PI to 1000 decimals? That's where prepack steps in and calculates PI to 1000 decimals for you during your build-step, so that the JS you ship doesn't have to do that calculation.