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: 192192a09e2d
Choose a base ref
...
head repository: nodejs/node-v0.x-archive
compare: a32972953717
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Dec 28, 2012

  1. buffer: speed up base64 encoding by 20%

    Remove a lot of branches from the inner loop. Speeds up buf.toString('base64')
    by about 20%.
    
    Before:
    
      $ time out/Release/node benchmark/buffer-base64-encode.js
      real    0m6.607s
      user    0m5.508s
      sys     0m1.088s
    
    After:
    
      $ time out/Release/node benchmark/buffer-base64-encode.js
      real    0m5.520s
      user    0m4.520s
      sys     0m0.992s
    bnoordhuis committed Dec 28, 2012
    Copy the full SHA
    a329729 View commit details
    Browse the repository at this point in the history