Open nbp opened 4 years ago
One aspect to be noted, while running DHAT valgrind tool (after disabling jemalloc), is that declare
and declare_var
are the major source of short-lived allocation/reallocation through std::collections::hash::map::HashMap<K,V,S>::insert
.
Maybe we should consider using a sparse BitSet or the EntitySet
from cranelift.
This result comes from the following profile where both SmooshMonkey and SpiderMonkey succeed: https://share.firefox.dev/38DHNBm
Under
js::frontend::GeneralParser::parse
, filtering withToken
highlights that we spent 3.407s in the lexer. Undersmoosh_test_parse_script
, filtering withlexer
highlights that we spent 4.858s in the lexer.