From 44af199aebcac8b8e177f8b76fcf8a9b30bd868a Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 21 Sep 2017 23:32:43 +0200 Subject: [PATCH] Use unordered_map in MatroskaCuePositionUpdater std::unordered_map should be faster than std::map --- matroska/matroskacues.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/matroska/matroskacues.h b/matroska/matroskacues.h index 0e59947..91c61e6 100644 --- a/matroska/matroskacues.h +++ b/matroska/matroskacues.h @@ -3,7 +3,7 @@ #include "./ebmlelement.h" -#include +#include #include namespace Media { @@ -77,9 +77,9 @@ private: bool updateSize(EbmlElement *element, int shift); EbmlElement *m_cuesElement; - std::map m_offsets; - std::map m_relativeOffsets; - std::map m_sizes; + std::unordered_map m_offsets; + std::unordered_map m_relativeOffsets; + std::unordered_map m_sizes; }; /*!