0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-28 01:04:41 +08:00

using std::list instead of std::vector is near twice faster

This commit is contained in:
Victor Zarubkin 2016-06-26 00:58:40 +03:00
parent bd09a0173f
commit 66d8a1b8f1

View File

@ -21,7 +21,7 @@ along with this program.If not, see <http://www.gnu.org/licenses/>.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include <vector>
#include <list>
#include <map>
#include "profiler/profiler.h"
@ -75,7 +75,7 @@ namespace profiler {
struct BlocksTree
{
typedef ::std::vector<BlocksTree> children_t;
typedef ::std::list<BlocksTree> children_t;
children_t children;
::profiler::SerilizedBlock* node;