Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
PERF: Release GIL on some datetime ops #11263
This is a WIP, but far enough along I thought I'd share and see if the approach was reasonable.
This releases the GIL on most vectorized field accessors (e.g.
Here are some timings - getting a pretty nice speedup. In single-threaded case things are looking about flat.
In : from pandas.util.testing import test_parallel In : dti = pd.date_range('1900-1-1', periods=100000) In : def f(): ...: for i in range(4): ...: dti.year In : @test_parallel(4) ...: def g(): ...: dti.year In : %timeit f() 10 loops, best of 3: 25.8 ms per loop In : %timeit g() 100 loops, best of 3: 7.71 ms per loop
added a commit
this pull request
Oct 17, 2015
@chris-b1 can you add these (clean then make again to see them)