News for hackers. Stuff that matters.
Re:Designing a better strcpy by iib on Saturday June 19, 2021 @07:52PM (#27565670)
I would assume the people bothered by an increase in byte-sized overhead are not the ones that are using 2^32 length strings.

About the cache, I think for small strings, scanning the whole string may still be faster.

Though adding a four-byte length prefix would make certain functions like strlen almost go away.

There are no comments on this comment yet.