Open miigotu opened 2 years ago
Thank you for pointing out. Will update it now.
And will update docs, ci and unitest soon.
Current implemention is about 7× faster than the pure python one. But after about one year of cython learning, I think it can be accelerated to the speed of C. Let's have a try, not only use cython to compile it, but also add more static typing and c-level variables.
To me, primary concern is that is works 100% if there is no compiler or dependencies, and then the speedups/extensions being optional or install if possible and falling back to pure python. My project deploys to many odd platforms, such as readynas, Synology, etc. Sometimes, it's not possible to install to these when a compiler is necessary.
It is posible to install without compiler because ci would build those wheels.
Take a look at sds branch. I replaced python's BytesIO
with redis's dynamic string object. Emmmm but I just made it about 10x faster now.
https://github.com/synodriver/fast-bencode/blob/main/setup.py#L50 lists the old repository name, so it points to a 404 when clicked from pypi