Hacker News new | ask | show | jobs
by stewbrew 3778 days ago
"In particular, they are nowadays not any more efficient than using character"

How could a comparison of two strings of unknown size be as efficient as comparing two integers? I'm curious to learn something new.

1 comments

R uses a global string cache so any string comparison is just comparing two pointers.