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:
parent
bd09a0173f
commit
66d8a1b8f1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user