poked around after more benchmarks and made a babel transform to try and make https://v8.dev/blog/cost-of-javascript-2019#json … optimization for default top level assignment, need to benchmark/tweak but we will see. Thanks @MehtaWrldPeace for the idea of the transform, @addyosmani , and @mathias
Neat! Is there any way to make this transform only apply above a certain size threshold? It's probably not worth doing it for sub-1kB literals.
-
-
Benchmarking locally anything except literal primitives won out using JSON, threshold is easy to add though.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.