New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize memchr
etc.
#5
Comments
Would it be possible to directly use compiler-builtins? It gets published on crates.io and should also be part of the sysroot. |
Cool, I didn't know compiler-builtins had |
And another resource here is the If anyone's interested in working on this, the first step would be to use the |
I'm interested in working on this! |
Thanks! If you're interested, I think the next step would be |
Currently c-scape's implementation of
memchr
and similar functions is very simple. It may be possible to optimize them using the memx crate.c-scape is compiled with
#![no_builtins
] to discourage the compiler from optimizing the definitions of C library functions into calls to C library functions, however the compiler can still generate calls tomemcpy
,memmove
,memset
, andmemcmpy
, so we need to be careful the compiler doesn't do that with the implementations of those functions :-).The text was updated successfully, but these errors were encountered: