[Commits] [wesnoth/wesnoth] a15867: less coping of configs when loading saved.

GitHub noreply at github.com
Sat Mar 7 00:41:13 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: a15867e634eb2406ba181bd6e81010b0052dd5ab
      https://github.com/wesnoth/wesnoth/commit/a15867e634eb2406ba181bd6e81010b0052dd5ab
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-03-07 (Sat, 07 Mar 2015)

  Changed paths:
    M src/replay_recorder_base.cpp
    M src/replay_recorder_base.hpp
    M src/saved_game.cpp
    M src/saved_game.hpp
    M src/savegame.cpp

  Log Message:
  -----------
  less coping of configs when loading saved.

First we make saved_game assignment operator copy and swap.
This might increase performance in case where the copy elison can be aplied.

Second we add a set_data(config& ) method that moves the savefile cfg
into this object. And use that function in the loadgame class.





More information about the Commits mailing list