Good morning, @v8js
I need to construct many functions from strings, but the minimum cost of calling `Function(src)` is high (~50us). The cost-per-generated-function reduces by 70% by concating all the strings first. Is this expected? Is it idiomatic?https://gist.github.com/robpalme/875752a7f4426da2f17a085d286eb7a9 …
-
-
Avoiding the question, your honour ;-) I did also try with a bunch of random real life functions and had similar results. The gist is a sanitized repro. The incrementing integer comment attempts to avoid the cache; please say if this is insufficient.
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.