synodriver / fast-bencode

fast bencode for python, based on cython
8 stars 1 forks source link

Update homepages in setup.py #1

Open miigotu opened 2 years ago

miigotu commented 2 years ago

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

synodriver commented 2 years ago

Thank you for pointing out. Will update it now.

synodriver commented 2 years ago

And will update docs, ci and unitest soon.

synodriver commented 2 years ago

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.

miigotu commented 2 years ago

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.

synodriver commented 2 years ago

It is posible to install without compiler because ci would build those wheels.

synodriver commented 2 years ago

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.