Hacker News new | past | comments | ask | show | jobs | submit login

Obviously it takes some extra cycles to perform ASI. Now, having said that I doubt any additional passes on the source are done to perform ASI. I suspect that if it is of any significance, they have folded it into another pass. And the code likely runs even if not all the semicolons are already in the right place, so it'd be a sunk cost in that regard.

Having said that, I'm, sure it's such a small amount of the compilation time to be pretty insignificant.

This is all however based on my professional experience writing parsers, and not on any specific knowledge of the workings of Javascript however.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: