mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-28 17:28:14 +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 <map>
|
||||||
#include "profiler/profiler.h"
|
#include "profiler/profiler.h"
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ namespace profiler {
|
|||||||
|
|
||||||
struct BlocksTree
|
struct BlocksTree
|
||||||
{
|
{
|
||||||
typedef ::std::vector<BlocksTree> children_t;
|
typedef ::std::list<BlocksTree> children_t;
|
||||||
|
|
||||||
children_t children;
|
children_t children;
|
||||||
::profiler::SerilizedBlock* node;
|
::profiler::SerilizedBlock* node;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user