[wesnoth-commits] [wesnoth/wesnoth] 629df4: Slight optimisation of canvas::set_variables using...
Steve Cotton
noreply at github.com
Wed Jun 9 17:29:02 UTC 2021
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 629df4e76caa93617b924e432411a62e57ca64c4
https://github.com/wesnoth/wesnoth/commit/629df4e76caa93617b924e432411a62e57ca64c4
Author: Steve Cotton <steve at octalot.co.uk>
Date: 2021-06-09 (Wed, 09 Jun 2021)
Changed paths:
M src/formula/callable.hpp
M src/gui/core/canvas.cpp
M src/gui/core/canvas.hpp
Log Message:
-----------
Slight optimisation of canvas::set_variables using std::move
Doesn't make much difference for release builds built with GCC,
it takes between 1% and 7% off the cost of std::update_canvas().
Calculated using the time taken by gui2::widget::get_best_size()
as a reference.
It's a tiny improvement, but it's also a tiny change, and the
improvement is in the loop that's MP lobby's performance problem,
as described in issue #5578.
More information about the Commits
mailing list