issues
search
synodriver
/
fast-bencode
fast bencode for python, based on cython
8
stars
1
forks
source link
[feat] speedup
#4
Open
synodriver
opened
1 week ago
synodriver
commented
1 week ago
There are some tips to speed up cython code.
prealloc buffer so make less calls to realloc.
done
reduce calls to
PyErr_Occurred()
do not decode, use bytes
done
use PyUnicode_ api
done
There are some tips to speed up cython code.
PyErr_Occurred()