Speed up bitfields conversion

The old code took 3~5 times longer than the newer version.
This commit is contained in:
Chocobo1
2022-01-24 13:28:56 +08:00
parent 9553afc3c2
commit 4e2daf117b
6 changed files with 105 additions and 16 deletions

View File

@@ -17,6 +17,7 @@ add_library(qbt_base STATIC
bittorrent/filterparserthread.h
bittorrent/infohash.h
bittorrent/loadtorrentparams.h
bittorrent/ltqbitarray.h
bittorrent/ltqhash.h
bittorrent/lttypecast.h
bittorrent/magneturi.h
@@ -108,6 +109,7 @@ add_library(qbt_base STATIC
bittorrent/filesearcher.cpp
bittorrent/filterparserthread.cpp
bittorrent/infohash.cpp
bittorrent/ltqbitarray.cpp
bittorrent/magneturi.cpp
bittorrent/nativesessionextension.cpp
bittorrent/nativetorrentextension.cpp