systemc: self-manage TimeSlot in Scheduler
authorEarl Ou <shunhsingou@google.com>
Wed, 16 Sep 2020 07:17:26 +0000 (15:17 +0800)
committerEarl Ou <shunhsingou@google.com>
Thu, 17 Sep 2020 02:26:34 +0000 (02:26 +0000)
commitae37bdd4f43d5e183492f1f24c3d5dc70baf81f8
treea2711ed10ed82f8a30eb6f99f4058f72e3cf8a32
parent1bca30c95b4c6413203fd54642ccddcff119c0c6
systemc: self-manage TimeSlot in Scheduler

TimeSlot is new and deleted frequently. Having a recycling memory
manager can help saving the time spent new and delete. Tested and see
about 4% improvement in simulation speed.

Change-Id: I0ab173168336a883b85f768d7fdf07a936a14d69
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34615
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/systemc/core/scheduler.hh