Comment Comment by dmitrygr Memory accesses are not slow on modern CPUs. With speculative loads and large L1d caches these loads won't stall even a single cycleString duplication helps speed here.Branch misprediction will happen once every fifteen times worst case.Plus, if shaving nanoseconds, printing is a bad idea parent dmitrygr 9 years ago
String duplication helps speed here.
Branch misprediction will happen once every fifteen times worst case.
Plus, if shaving nanoseconds, printing is a bad idea