4 ms·
Even if the tool wasn't as useful as the traditional tool users have liked, I think that the following was an interesting comment: I think that, at least hyp
by chris_wot 14y ago
Even if the tool wasn't as useful as the traditional tool users have liked, I think that the following was an interesting comment:
I think that, at least hypothetically, this app won’t be
significantly faster written in C than in JavaScript.
It’s I/O bound, and in JS regular expressions get JITted
to native code (which sed won’t even do!).
The real slowdown here with our current JS
implementations will be overhead for creating and
replacing-in strings. This app actually just gave me a
crazy idea for how we could optimize this kind of usage,
so I wanted to say thanks!
http://harthur.wordpress.com/2011/06/06/replace/#comment-776 http://harthur.wordpress.com/2011/06/06/replace/#comment-776