mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Speedup compilation speed
libtorrent has a relatively heavy headers, that take lots of time to process. This commit removes unnecessary includes of libtorrent headers and replaces them with forward declarations. I had to move some functions in QBtSession from slots to regular functions because moc'ed file want to see complete types of all parameters of slots. "time make" of full rebuild before this series of commits: real 13m35.937s user 12m1.295s sys 1m25.908s after: real 10m54.390s user 9m31.167s sys 1m12.580s
This commit is contained in:
parent
f6732e87f2
commit
de5f38a160
11 changed files with 105 additions and 59 deletions
|
@ -39,6 +39,8 @@
|
|||
#include <QElapsedTimer>
|
||||
#endif
|
||||
|
||||
#include <libtorrent/session_status.hpp>
|
||||
|
||||
using namespace libtorrent;
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue