Re:Never use a dependency that you could replace with an aft...
by cogman10 on Tuesday August 11, 2020 @07:00PM
(#24126956)
Depends on the form that `str = ch + str` takes inside the loop. But yeah, the way they wrote the code makes it less likely to work well.
The above would probably get caught by the JIT and would essentially be optimized to what `ch.repeat(len) + str;` would do.
[ Parent
| on HN ]
There are no comments on this comment yet.