Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing eval() for performance, usage was also causing variable collision in some minifiers #177

Merged
merged 1 commit into from
Nov 21, 2012

Conversation

NickCraver
Copy link
Contributor

The eval() inside multisort() was causing minifier variable collision with a few minifiers. Since this eval isn't necessary it might as well be removed so the browser can also optimize the code path. Allowing all modern browsers to be able to JIT here can result in quite a speed boost for large datasets, the more correlated the data (better branch prediction) the faster the speedup will be.

I'm mainly fixing this for the minification issue, but if we can improve performance at the same time, win-win.

The eval() inside multisort() was causing minifier variable collision
with a few minifiers.  Since this eval isn't necessary it might as well
be removed so the browser can also optimize the code path.
@Mottie
Copy link
Owner

Mottie commented Nov 21, 2012

Wow that's fantastic Nick! I never got around to figuring out how to remove the eval. Your help is very much appreciated!

Mottie added a commit that referenced this pull request Nov 21, 2012
Removing eval() for performance, usage was also causing variable collision in some minifiers
@Mottie Mottie merged commit 57d892c into Mottie:master Nov 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants