News for hackers. Stuff that matters.
Re:A 100LOC C impl of memset, that is faster than glibc's by moonchild on Friday November 12, 2021 @04:54PM (#29204983)
Also in assembly, up to 370% the speed of glibc - https://github.com/moon-chilled/fancy-memset
Re:A 100LOC C impl of memset, that is faster than glibc's by moonchild on Saturday November 13, 2021 @01:25AM (#29207878)
(I have not yet publicized the implementation because I still need to check its performance in real-world applications. But quipping '370% in microbenchmarks with ideal branch-prediction and caching' seems appropriate considering that's no less than what the linked post does.

That being said, preliminary instrumentation indicates the tradeoffs made were correct.

My main point, however, is that for such low-level, essential subroutines, assembly remains the correct implementation language; c is still inadequate.)