nadavrot/memset_benchmark
View on GitHub ↗ ★ 345 Assembly
This repository contains high-performance implementations of memset and memcpy in assembly.
5 mentions on Hacker News by 5 people: 1 story, 4 comments · first 2021-11-12 · latest 2023-04-30
20082026
-
mem* do not need to be called via ifunc. That is a toolchain decision. See e.g. https://github.com/nadavrot/memset_benchmark for recent data about the cost of PLT indirection for small copies. ETA: Also this excellent paper that is all…
comment by jeffbee · 2023-04-30 · in Function multi-versioning in GCC 6 (2016) -
Link to Github for easier reading https://github.com/nadavrot/memset_benchmark
comment by Damme · 2021-11-28 · in Optimising Memset and Memcpy -
…that the base pointer is not aligned for. And the code looks like it does just that right here: https://github.com/nadavrot/memset_benchmark/blob/main/src/l... This is undefined behavior under C99 §6.3.2.3 Paragraph 7. "If the resulting…
comment by kevin_b_er · 2021-11-12 · in A 100LOC C impl of memset, that is faster than glibc's -
I think that Duff's device could be used on lines 65-86 ( https://github.com/nadavrot/memset_benchmark/blob/eac67b6205... )
comment by Jyaif · 2021-11-12 · in A 100LOC C impl of memset, that is faster than glibc's