Movatterモバイル変換
[0]ホーム
[Python-Dev] C version of functools.lru_cache
Peter Bradypetertbrady at gmail.com
Thu Jun 26 17:38:50 CEST 2014
Hello python devs,I was recently in need of some faster caching and thought this would be agood opportunity to familiarize myself with the Python/C api so I wrote a Cextension for the lru_cache in functools. The source is athttps://github.com/pbrady/fastcache.git and I've posted it as a package onPyPI (fastcache). There are some simple benchmarks on the github pageshowing about 9x speedup. I would like to submit this for incorporationinto the standard library. Is there any interest in this? I suspect itprobably requires some changes/cleanup especially since I haven't addressedthread-safety at all.Thanks,Peter.P.S. This was the motivation for the faster cachinghttps://github.com/sympy/sympy/pull/7464.-------------- next part --------------An HTML attachment was scrubbed...URL: <http://mail.python.org/pipermail/python-dev/attachments/20140626/c55b9487/attachment.html>
More information about the Python-Devmailing list
[8]ページ先頭