[Commits] [wesnoth/wesnoth] ba8aa8: Used a deque instead of a vector for active event ...
GitHub
noreply at github.com
Thu Jan 18 09:48:55 UTC 2018
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: ba8aa80af8eb5975c9089b89e75e775da58601c2
https://github.com/wesnoth/wesnoth/commit/ba8aa80af8eb5975c9089b89e75e775da58601c2
Author: Charles Dang <exodia339 at gmail.com>
Date: 2018-01-18 (Thu, 18 Jan 2018)
Changed paths:
M src/game_events/manager_impl.hpp
Log Message:
-----------
Used a deque instead of a vector for active event handlers
Since events can be added and removed constantly, this should be more performance-friendly than
a vector since it avoids reallocations. Though, since this container only holds shared_ptrs instead
of the objects themselves, it probably doesn't make that much difference right now, but I might
switch to object-direct storage in the future. Not sure.
More information about the Commits
mailing list