node/benchmark/buffers
Ben Noordhuis 8fd3ce100e src: make base64 decoding 50% faster
Make the inner loop execute fewer compare-and-branch executions per
processed byte, resulting in a 50% or more speedup.

This coincidentally fixes an out-of-bounds read:

    while (unbase64(*src) < 0 && src < srcEnd)

Should have read:

    while (src < srcEnd && unbase64(*src) < 0)

But this commit removes the offending code altogether.

Fixes: https://github.com/nodejs/io.js/issues/2166
PR-URL: https://github.com/nodejs/io.js/pull/2193
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
2015-07-25 19:07:23 +02:00
..
buffer-base64-decode.js src: make base64 decoding 50% faster 2015-07-25 19:07:23 +02:00
buffer-base64-encode.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
buffer-bytelength.js buffer: optimize Buffer.byteLength 2015-05-22 15:31:03 -07:00
buffer-compare.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
buffer-creation.js bench: Consistency in benchmark filenames 2013-02-19 17:16:55 -08:00
buffer-iterate.js buffer: implement `iterable` interface 2015-01-28 16:40:15 +03:00
buffer-read.js buffer: improve {read,write}{U}Int* methods 2014-04-01 17:31:28 -07:00
buffer-slice.js benchmark: Add a test to measure Buffer.slice perf 2014-05-28 11:57:05 -07:00
buffer-tostring.js buffer: optimize Buffer#toString() 2015-06-25 18:32:15 +02:00
buffer-write.js buffer: improve {read,write}{U}Int* methods 2014-04-01 17:31:28 -07:00
dataview-set.js bench: Consistency in benchmark filenames 2013-02-19 17:16:55 -08:00