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

lib: fix expensive isNaN call in readable streams #1925

Closed
wants to merge 1 commit into from

Commits on Jun 9, 2015

  1. lib: fix expensive isNaN call in readable streams

    Replace a call to `isNaN(n)` with `n !== n`.  Removes most of the
    overhead from the following hotspot:
    
        13.59%  iojs             perf-603.map         [.] LazyCompile:*isNaN
        native v8natives.js:67
    bnoordhuis committed Jun 9, 2015
    Configuration menu
    Copy the full SHA
    ec8b7d3 View commit details
    Browse the repository at this point in the history