summaryrefslogtreecommitdiff
path: root/opendc-experiments/opendc-experiments-capelin/src/test
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-10-01 20:08:21 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-10-03 17:17:41 +0200
commit6e424e9b44687d01e618e7bc38afc427610cd845 (patch)
treed7fa113d8a31257cf8aceb7215c041df6a8d5807 /opendc-experiments/opendc-experiments-capelin/src/test
parentde8509b50d5acb7e739eb5cb4d29b03a627c8985 (diff)
perf(simulator): Optimize hot path in SimTraceWorkload
This change optimizes the hot path of the SimTraceWorkload class. This class is used by multiple experiments to replay workload traces and consumes a considerable amount of time of the total time of the experiments. By inlining the isExpired method, marking the properties on the Fragment class as field, and caching several properties locally in the class, we reduce the amount of virtual method calls in the hot path.
Diffstat (limited to 'opendc-experiments/opendc-experiments-capelin/src/test')
0 files changed, 0 insertions, 0 deletions