kphp
kphp copied to clipboard
Permit marking some FFI funcs as "safe" to omit critical sections
Calling sin() function from glibc via FFI:
- With critical sections: 15ns
- Without critical sections: 2ns
We should allow marking simple getter/math functions with some annotation that makes compiler omit critical section for these FFI calls.