lib: cache parsed source maps to reduce memory footprint
This also improves performance to map the stack trace when the Error.stack
is accessed.
confidence improvement accuracy (*) (**) (***)
es/error-stack.js n=100000 method='sourcemap' *** 18.90 % ±1.54% ±2.06% ±2.68%
es/error-stack.js n=100000 method='without-sourcemap' -0.24 % ±1.40% ±1.86% ±2.43%
Be aware that when doing many comparisons the risk of a false-positive result increases.
In this case, there are 2 comparisons, you can thus expect the following amount of false-positive results:
0.10 false positives, when considering a 5% risk acceptance (*, **, ***),
0.02 false positives, when considering a 1% risk acceptance (**, ***),
0.00 false positives, when considering a 0.1% risk acceptance (***)