GvR's idea to use memset() for the most common special case of repeating
a single character. Shaves another 10% off the running time by avoiding the lg2(N) loops and cache effects for the other cases.
Showing
Please
register
or
sign in
to comment