4 ms·
anybody care to explain the downvotes?
by lukasm 12y ago
anybody care to explain the downvotes?
- robin_reala 12y agoUTF-8 apparently usually ends up faster as you’re shifting a smaller amount of data from the RAM to the CPU and back out. This makes it more likely that your strings will fit in the CPU’s cache rather than having to hit the main RAM every time, leading to overall speed improvements. (this from an interest in the subject, rather than any actual implementation work I’ve done)