use the more efficient bdecoder from libtorrent #10

Merged
merged 1 commit into from Aug 13, 2016

Projects

None yet

2 participants

@arvidn
Contributor
arvidn commented Aug 8, 2016 edited

This replaces the lazy_bdecode decoder with the more efficient decoder from libtorrent. More details on performance here: http://blog.libtorrent.org/2015/03/bdecode-parsers/

Only basic testing has been done, by poking it with the test_dht.py script. However, that is where most of the bdecoding happens, so it covers a significant portion of the updated code.

@arvidn
Contributor
arvidn commented Aug 13, 2016

rebased on top of master

@ssiloti
Contributor
ssiloti commented Aug 13, 2016

lgtm

@arvidn arvidn merged commit 091b13e into bittorrent:master Aug 13, 2016
@arvidn arvidn deleted the arvidn:faster-bdecode branch Aug 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment