Re: [nodejs] Re: Buffer.indexOf'

2012-12-17 Thread rootslab
Hi Mikeal, after some tests/benchmarks on these algorithms with js: - brute force - quick seacrh - boyer moore and tuned boyer moore I think that could be possible to add a js implementation for Buffer.indexOf. The fastest algorithm for small patterns is Boyer-Moore in usual cases, but I think

[nodejs] Re: Buffer.indexOf'

2012-12-04 Thread mscdex
On Dec 4, 3:50 pm, rootslab 44ga...@gmail.com wrote: A little question: in future releases of nodeJs, is it planned to add a method like '*Buffer.indexOf'* ? Have you seen buffertools?: https://github.com/bnoordhuis/node-buffertools -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

[nodejs] Re: Buffer.indexOf'

2012-12-04 Thread mscdex
On Dec 4, 8:28 pm, Mikeal Rogers mikeal.rog...@gmail.com wrote: we might want to have a conversation about which of these methods should go in to core. some of them can be optimized, eventually, in C and so they should really be in core if we hope to do that eventually. That's fine by me,