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: 632b7d8750a9
Choose a base ref
...
head repository: nodejs/node-v0.x-archive
compare: e325ace53c83
Choose a head ref
  • 2 commits
  • 4 files changed
  • 1 contributor

Commits on Mar 8, 2013

  1. buffer: strip high bits when converting to ascii

    Consider the following example:
    
      console.log(Buffer('ú').toString('ascii'));
    
    Before this commit, the contents of the buffer was used as-is and hence it
    prints 'ú'.
    
    Now, it prints 'C:'. Perhaps not much of an improvement but it conforms to what
    the documentation says it does: strip off the high bits.
    
    Fixes #4371.
    bnoordhuis authored and isaacs committed Mar 8, 2013
    Copy the full SHA
    96a314b View commit details
    Browse the repository at this point in the history
  2. buffer: speed up ascii character scanning

    Speed up ASCII character scanning and conversion by 25% to 30% by scanning and
    converting whole words instead of individual bytes.
    bnoordhuis authored and isaacs committed Mar 8, 2013
    Copy the full SHA
    e325ace View commit details
    Browse the repository at this point in the history