Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Avoid reading outside of collection bounds #3769
Consider the following collection:
const array = ['a', 'b', 'c'];
This patch changes the way the
A more in-depth explanation can be found here: https://ripsawridge.github.io/articles/blink-mysterium/
Similar patch for Sizzle: jquery/sizzle#407
This change adds 6 bytes after minification + gzip.
Nice, I think it's worth it. Blog post has interesting insights, but it seems you have to understand Chrome internals to fully appreciate it, that's why I was thinking to check it with our usual approach to the perf pulls.
Thinking a bit further, internally, we were thinking to write loops in same matter across the code base. Maybe this even worth to write a custom eslint rule, so we could put in the jquery preset and all. Since such cases are fairly generalised?