From 1b370431d0ac51eb54bfbf17247f935d48995a34 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Tue, 5 Jun 2012 01:23:08 -0400 Subject: sim: Remove FastAlloc While FastAlloc provides a small performance increase (~1.5%) over regular malloc it isn't thread safe. After removing FastAlloc and using tcmalloc I've seen a performance increase of 12% over libc malloc when running twolf for ARM. --- src/sim/eventq.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/sim/eventq.hh') diff --git a/src/sim/eventq.hh b/src/sim/eventq.hh index e7d088e80..b04b43702 100644 --- a/src/sim/eventq.hh +++ b/src/sim/eventq.hh @@ -42,7 +42,6 @@ #include #include -#include "base/fast_alloc.hh" #include "base/flags.hh" #include "base/misc.hh" #include "base/trace.hh" @@ -61,7 +60,7 @@ extern EventQueue mainEventQueue; * * Caution, the order of members is chosen to maximize data packing. */ -class Event : public Serializable, public FastAlloc +class Event : public Serializable { friend class EventQueue; -- cgit v1.2.3