3 ms·
Also in assembly, up to 370% the speed of glibc - https://github.com/moon-chilled/fancy-memset https://github.com/moon-chilled/fancy-memset
by moonchild 5y ago
Also in assembly, up to 370% the speed of glibc - https://github.com/moon-chilled/fancy-memset https://github.com/moon-chilled/fancy-memset
- moonchild 5y ago(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.)