mirror of https://github.com/lukechilds/node.git
Browse Source
Replace call to Number::New() with a call to Integer::NewFromUnsigned(). Profiling a Real World(TM) application with perf(1) suggests that the conversion of its argument from integer to double is disproportionally costly: over 60% of CPU cycles accountable to WriteStringImpl() are attributable to the conversion. After changing it to Integer::NewFromUnsigned(), WriteStringImpl() has dropped from the 'most costly functions' top ten altogether.v0.10.23-release
Ben Noordhuis
11 years ago
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue