-
- Downloads
Defer the parser and its related construction until it's needed (#14133)
Expression parser construction is expensive (mainly due to grammar validation via Chevrotain's performSelfAnalysis). Thus, instantiating the parsers at the initialization time will lead to a signifant delay in DOMContentLoaded, thereby affecting (among others) the embedding performance. To avoid this, simply defer that step until parsing is really needed (which is actually far far later, i.e. when the user is using the notebook). * Add a clarifying comment regarding parser lazy loading
Please register or sign in to comment