diff options
author | Edgars Cīrulis <edgarsscirulis@gmail.com> | 2022-12-15 15:43:46 +0200 |
---|---|---|
committer | Edgars Cīrulis <edgarsscirulis@gmail.com> | 2022-12-15 16:17:19 +0200 |
commit | 52dc9068e558046a84353df924031091b3e28b7b (patch) | |
tree | d3bd1ca6375db521e16081fb6b38d86b78732a4d /launcher/ApplicationMessage.h | |
parent | 4f1ea712da46e34a6a1bd75ac68b080bac786462 (diff) | |
download | PrismLauncher-52dc9068e558046a84353df924031091b3e28b7b.tar.gz PrismLauncher-52dc9068e558046a84353df924031091b3e28b7b.tar.bz2 PrismLauncher-52dc9068e558046a84353df924031091b3e28b7b.zip |
ApplicationMessage: Use QHash instead of QMap
QHash provides faster lookup times than QMap because it uses a hash table to store the elements, while QMap uses a self-balancing binary tree.
Signed-off-by: Edgars Cīrulis <edgarsscirulis@gmail.com>
Diffstat (limited to 'launcher/ApplicationMessage.h')
-rw-r--r-- | launcher/ApplicationMessage.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/ApplicationMessage.h b/launcher/ApplicationMessage.h index 745bdead..d66456eb 100644 --- a/launcher/ApplicationMessage.h +++ b/launcher/ApplicationMessage.h @@ -1,12 +1,12 @@ #pragma once #include <QString> -#include <QMap> +#include <QHash> #include <QByteArray> struct ApplicationMessage { QString command; - QMap<QString, QString> args; + QHash<QString, QString> args; QByteArray serialize(); void parse(const QByteArray & input); |