This repository was archived by the owner on Mar 9, 2023. It is now read-only.
Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork52
Tags: WorksApplications/SudachiPy
Tags
v0.4.6
Cython based optimization (#123)* Remove unecessary deep copy* Add lru_cache on get_word_info* Add lru_cache to get_word_infoThis seems to be a small speedup.* Basic CythonizationUnlike the other branch the tests pass on this one. Benchmark time wentdown by a third compared to the previous commit.I'm not sure the _c functions are necessary here - I think that's whatcpdef functions are for, but I had difficulty getting them working. Willneed to give that another look.* Use cpdef functionsDidn't have any issues this time, and it's cleaner with no clearperformance difference.* Move build_lattice to Cython, intern some slow partsThis should cut execution time by roughly 25% compared to the lastcommit.* Don't use deepcopyThis is not an appropriate use of deepcopy and it's slow.* Add cython to setup_requires* Fix setup.py* Make INHIBITED_CONNECTION literalMinor speed boost.* Bring the matrix into the lattice buildingThis provides a notable speedup.* Various cythonizationsImprovements are relatively minor compared to previous commit, but thereis a few seconds of speedup.* Inline function for small speed boost* Change import order, make lru cache size explicitMaybe this will make Travis happy?* Add a build command* Use INT_MAX* Remove commentMissed this before, this is fine.
PreviousNext