diff options
| author | pooka <pooka@NetBSD.org> | 2014-03-15 15:15:26 +0000 |
|---|---|---|
| committer | pooka <pooka@NetBSD.org> | 2014-03-15 15:15:26 +0000 |
| commit | 3290c1c7f76e27ff6200f00be852b853dce940f1 (patch) | |
| tree | ab3fca303d944b6fb50a5ada79321ae04b2834bd /sys/modules/lua/lua.c | |
| parent | d1ea6c0e833a53920fd5a00adc6e2fc72d3c2c50 (diff) | |
Allow compile-time optimizations to curlwp. This can have a pretty
staggering impact on performance. When running sendto() in a loop,
the improvement is 200k more calls per second with an inlined __thread
curlwp as opposed to the default. In other words, it shaves off hundreds
of CPU cycles per call (~20%). Even just eliminating the x86_curlwp()
call in favor of an inline gives an improvement of 60k calls per second.
Diffstat (limited to 'sys/modules/lua/lua.c')
0 files changed, 0 insertions, 0 deletions
