safeclib VS fancy-memcmp

Compare safeclib vs fancy-memcmp and see what are their differences.

safeclib

safec libc extension with all C11 Annex K functions (by rurban)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
safeclib fancy-memcmp
8 2
311 3
- -
7.0 3.5
18 days ago 9 days ago
C Assembly
GNU General Public License v3.0 or later -
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

safeclib

Posts with mentions or reviews of safeclib. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-22.

fancy-memcmp

Posts with mentions or reviews of fancy-memcmp. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-05.
  • Out-of-bounds read and write in the glibc's qsort()
    2 projects | news.ycombinator.com | 5 Feb 2024
    Hrm—that's another case of missing isel from gcc/clang (c.f. <https://pp.ipd.kit.edu/firm/selgen>)—my implementation (<https://github.com/moon-chilled/fancy-memcmp/blob/master/mem...>) does it in one less instruction. (An alternative is to skip the xors and do cmp/setcc/setcc/sub/movsx, which matches my approach on instruction count, but relies on good handling of partial renames, which is uarch-dependent. And I can never remember if anybody can eliminate movsx. Otoh it is non-destructive.)
  • LLVM's Libc Gets Much Faster memcpy For RISC-V
    3 projects | news.ycombinator.com | 22 May 2023
    I only have experience with their amd64 code.

    > What problems do they have?

    Nothing in particular, just not particularly amazing performance. They work fine. One thing they have going for them is that they typically have separate versions for every interesting architecture feature level/set, whereas e.g. bionic only has sse code. I guess I can point at my own implementations of memset and memcmp (https://github.com/moon-chilled/fancy-memset https://github.com/moon-chilled/fancy-memcmp), both of which employ novel techniques not used by glibc; but I've not yet gotten around to doing proper benchmarks on either.

What are some alternatives?

When comparing safeclib and fancy-memcmp you can also consider the following projects:

memset_benchmark - This repository contains high-performance implementations of memset and memcpy in assembly.

fancy-memset - small, fast memset based on microsoft's design

qemu

gcc

libu8ident - unicode security guidelines for identifiers

copies-and-fills

libredwg - Official mirror of libredwg. With CI hooks and nightly releases. PR's ok

libnbd

nbdkit