As we never use {push,pop}_front std::vector works here perfectly. Also reserve memory for std::vector out of lock. This could be considered as an optimization, but in reality this is just using right container in right place. According to my measurements total speedup is under 0.2%.
qBittorrent - A BitTorrent client in Qt
###Description: qBittorrent is a bittorrent client programmed in C++ / Qt that uses libtorrent (sometimes called libtorrent-rasterbar) by Arvid Norberg.
It aims to be a good alternative to all other bittorrent clients out there. qBittorrent is fast, stable and provides unicode support as well as many features.
This product includes GeoLite data created by MaxMind, available from http://maxmind.com/
Installation:
For installation, follow the instructions from INSTALL file, but simple:
./configure
make && make install
qbittorrent
will install and execute qBittorrent hopefully without any problem.
For more information please visit: http://www.qbittorrent.org
or our wiki here: http://wiki.qbittorrent.org
Please report any bug (or feature request) to: http://bugs.qbittorrent.org
You can also meet me (sledgehammer_999) on IRC:
#qbittorrent on irc.freenode.net
sledgehammer999 sledgehammer999@qbittorrent.org