mirror of https://github.com/lukechilds/node.git
Browse Source
Move the implementation to C++ land. The old JS implementation used string concatenation, was dog slow and consumed copious amounts of memory for large buffers. Example: var buf = Buffer(0x1000000); // 16 MB buf.toString('hex') // Used 3+ GB of memory. The new implementation operates in O(n) time and space. Fixes #4700.v0.9.9-release
Ben Noordhuis
12 years ago
3 changed files with 22 additions and 15 deletions
Loading…
Reference in new issue