Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/node-v0.x-archive
base: 916aebabb837
Choose a base ref
...
head repository: nodejs/node-v0.x-archive
compare: cd42f56178c9
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Feb 2, 2013

  1. buffer: optimize Buffer.prototype.write(s, 'hex')

    Move the implementation to C++ land. This is similar to commit 3f65916
    but this time for the write() function and the Buffer(s, 'hex')
    constructor.
    
    Speeds up the benchmark below about 24x (2.6s vs 1:02m).
    
      var s = 'f';
      for (var i = 0; i < 26; ++i) s += s;  // 64 MB
      Buffer(s, 'hex');
    bnoordhuis committed Feb 2, 2013
    Copy the full SHA
    cd42f56 View commit details
    Browse the repository at this point in the history