Closed
Description
Hi guys. While I was looking at sources... I found that util.format()
is based on String#replace()
with "replacer" function.
I am wondering if anyone has experimented with automata-based solution maybe composed with String#indexOf('%')
(for faster moving from one char sequence to another).
If no, would you be interested in such an implementation? I'd benchmark following impls.:
- automata w/
indexOf('%')
- automata w/o
indexOf('%')
Or, explain plz why it would not give actual speedup.