jashkenas / coffeescript

Unfancy JavaScript
https://coffeescript.org/
MIT License
16.45k stars 1.98k forks source link

Optimize split in checkShebangLine #5452

Closed Connormiha closed 8 months ago

Connormiha commented 9 months ago

A little optimization. String split has optional second argument to reduce elements count in result array and stop parsing in advance.

GeoffreyBooth commented 8 months ago

Thanks for this! Can you please update the build output and include that too?

Connormiha commented 8 months ago

Thanks for this! Can you please update the build output and include that too?

Done