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

@@ -16,6 +16,7 @@ HEADERS += \
$$PWD/bittorrent/filterparserthread.h \
$$PWD/bittorrent/infohash.h \
$$PWD/bittorrent/loadtorrentparams.h \
$$PWD/bittorrent/ltqbitarray.h \
$$PWD/bittorrent/ltqhash.h \
$$PWD/bittorrent/lttypecast.h \
$$PWD/bittorrent/magneturi.h \
@@ -108,6 +109,7 @@ SOURCES += \
$$PWD/bittorrent/filesearcher.cpp \
$$PWD/bittorrent/filterparserthread.cpp \
$$PWD/bittorrent/infohash.cpp \
$$PWD/bittorrent/ltqbitarray.cpp \
$$PWD/bittorrent/magneturi.cpp \
$$PWD/bittorrent/nativesessionextension.cpp \
$$PWD/bittorrent/nativetorrentextension.cpp \