Ben Noordhuis
3f65916fa9
buffer: optimize Buffer.prototype.toString('hex')
...
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 .
2013-02-01 23:07:17 +01:00
..
2012-12-14 10:52:28 -08:00
2011-03-14 17:37:05 -07:00
2013-01-17 10:42:44 -08:00
2012-12-13 17:00:26 -08:00
2013-01-31 13:33:37 -08:00
2013-01-28 08:40:45 -08:00
2013-01-24 07:49:27 -08:00
2012-12-29 11:19:14 -08:00
2013-02-01 23:07:17 +01:00
2013-01-28 22:12:21 +01:00
2013-01-28 22:12:21 +01:00
2013-01-18 15:39:08 -08:00
2011-03-14 17:37:05 -07:00
2012-12-14 10:52:27 -08:00
2013-01-28 22:19:02 +01:00
2013-01-18 12:13:32 +01:00
2012-12-29 10:37:31 -08:00
2013-01-17 13:20:22 -08:00
2011-03-14 17:37:05 -07:00
2013-01-04 19:02:05 +01:00
2013-01-28 08:54:08 -08:00
2012-12-28 16:42:51 +01:00
2013-01-25 14:25:35 -08:00
2013-01-28 17:15:22 -08:00
2013-01-30 04:24:58 +01:00
2013-01-11 18:50:09 +01:00
2013-01-16 16:53:11 +01:00
2012-06-19 14:07:48 -07:00
2013-01-29 23:57:23 -08:00
2013-01-16 10:59:22 -08:00
2012-12-13 17:00:23 -08:00
2012-12-13 17:00:22 -08:00
2012-06-28 10:14:03 -07:00
2012-12-29 15:32:25 -08:00
2013-01-24 16:48:49 -08:00
2012-12-21 11:05:46 -08:00
2012-10-30 09:16:13 -07:00
2012-12-26 14:54:56 -08:00
2012-03-03 23:48:57 -08:00
2012-12-14 10:52:26 -08:00