0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 23:43:09 +01:00
nodejs/benchmark/buffers
Karl Skomski a18dd7b788 src: replace naive search in Buffer::IndexOf
Adds the string search implementation from v8
which uses naive search if pattern length < 8
or to a specific badness then uses Boyer-Moore-Horspool

Added benchmark shows the expected improvements
Added option to use ucs2 encoding with Buffer::IndexOf

Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/2539
2015-10-07 21:09:53 -07:00
..
buffer-base64-decode.js src: make base64 decoding 50% faster 2015-07-25 19:07:23 +02:00
buffer-base64-encode.js
buffer-bytelength.js buffer: optimize Buffer.byteLength 2015-05-22 15:31:03 -07:00
buffer-compare.js
buffer-creation.js
buffer-indexof.js src: replace naive search in Buffer::IndexOf 2015-10-07 21:09:53 -07:00
buffer-iterate.js buffer: implement iterable interface 2015-01-28 16:40:15 +03:00
buffer-read.js
buffer-slice.js
buffer-tostring.js buffer: optimize Buffer#toString() 2015-06-25 18:32:15 +02:00
buffer-write.js
dataview-set.js