scoder / fastrlock

A fast RLock implementation for CPython
MIT License
23 stars 10 forks source link

Update Benchmark Code and report benchmarks compiled on Linux for 3.8 #10

Closed hmaarrfk closed 1 year ago

hmaarrfk commented 3 years ago

I was curious if FastRLock was beneficial in recent versions of CPython especially with LinkTimeOptimization enabled by Anaconda and Conda-forge.

It seems that it is not faster compared to RLock.

However, I haven't included this conclusion as part of this PR.

scoder commented 2 years ago

Thanks. I'm getting mixed results with recent CPython versions. It seems that it's about the same speed, can be faster or slower. In any case, it's still faster when using it from Cython rather than Python.

I think it's worth some kind of update in the docs to reflect that.

scoder commented 2 years ago

It also seems that Cython 3.0 makes a visible difference here. The latest wheels still use 0.29.24.

scoder commented 1 year ago

Not merging, since I switched to using Cython 3.0 since then.

hmaarrfk commented 1 year ago

Interesting results. Thank you for the ping