3 ms·
IIRC this was also the case for node/V8/I don't recall: Whether a function was inlineable was decided based on its size - and that was determined based on size
by ThePadawan 7y ago
IIRC this was also the case for node/V8/I don't recall:
Whether a function was inlineable was decided based on its size - and that was determined based on size-as-text instead of size-as-AST.
This lead to the situation where adding too much comment text (I believe it was 512 bytes total for the function) led to the inliner refusing to inline the code, and thus performance regressions.