kphp icon indicating copy to clipboard operation
kphp copied to clipboard

Permit marking some FFI funcs as "safe" to omit critical sections

Open quasilyte opened this issue 4 years ago • 0 comments

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.

quasilyte avatar Aug 08 '22 07:08 quasilyte