Loïc Blot 072bbba69a Some performance optimizations (#5424)
* Some performance optimizations

This is globally removing some memory useless copy

* use a const ref return on std::string Settings::get to prevent data copy on getters which doesn't need to copy it
 * pass some stack created strings to static const as they are not modified anywhere
 * Camera: return nametags per const ref instead of a list pointer, we only need to read it
 * INodeDefManager: getAll should be a result ref writer instead of a return copy
 * INodeDefManager: getAlias should return a const std::string ref
 * Minimap: unroll a Scolor creation in blitMinimapPixersToImageRadar to prvent many variable construct/destruct which are unneeded (we rewrite the content in the loop)
 * CNodeDefManager::updateAliases: prevent a idef getall copy
 * Profiler: constness
 * rollback_interface: create real_name later, and use const ref
 * MapBlockMesh updateFastFaceRow: unroll TileSpec next_tile, which has a cost of 1.8% CPU due to variable allocation/destruction,
 * MapBlockMesh updateFastFaceRow: copy next_tile to tile only if it's a different tilespec
 * MapBlockMesh updateFastFaceRow: use memcpy to copy next_lights to lights to do it in a single cpu operation
2017-03-22 21:41:02 +01:00
..
2016-12-26 22:36:22 +01:00
2015-05-12 21:07:46 +02:00
2016-12-26 22:36:22 +01:00
2015-03-27 15:00:48 -04:00
2017-01-28 18:52:07 -05:00
2017-03-20 20:28:22 +00:00
2016-03-19 21:27:57 -04:00
2015-08-23 22:04:06 -04:00
2017-03-19 13:18:52 +01:00
2017-03-20 18:34:18 +00:00
2015-12-07 13:51:41 -05:00
2016-02-11 16:55:15 +01:00
2016-02-11 16:55:15 +01:00
2016-09-21 08:04:11 +02:00
2017-03-13 23:56:05 +01:00
2016-07-05 21:40:13 +02:00
2015-11-06 08:51:14 +01:00
2017-03-20 18:34:18 +00:00
2015-08-25 18:33:52 -04:00
2016-12-20 17:17:38 +10:00
2015-12-07 13:51:41 -05:00
2015-07-08 10:12:44 +02:00
2017-03-19 13:18:52 +01:00
2015-10-14 01:03:54 -04:00
2015-10-26 15:14:22 +01:00
2015-03-25 02:30:17 +10:00
2017-01-13 18:13:43 -05:00
2015-07-23 07:38:13 +02:00
2015-08-25 18:33:52 -04:00
2014-01-13 18:11:08 -05:00
2017-03-13 23:56:05 +01:00
2016-12-28 14:16:39 -08:00
2015-11-06 08:51:14 +01:00
2017-03-18 12:37:57 +01:00
2017-03-20 18:34:18 +00:00
2017-03-11 18:11:19 -08:00
2017-03-20 18:34:18 +00:00
2017-01-23 07:27:12 +01:00
2017-02-08 00:15:55 +01:00
2017-02-08 00:15:55 +01:00
2016-03-02 23:23:31 -05:00
2017-03-20 20:28:22 +00:00
2016-06-11 23:35:17 +01:00
2016-06-11 23:35:17 +01:00
2016-06-04 02:16:06 -04:00
2016-06-04 01:51:44 -04:00
2016-05-01 15:32:02 +02:00
2015-12-07 13:51:41 -05:00
2015-12-07 13:51:41 -05:00
2015-08-23 22:04:06 -04:00
2017-01-04 19:18:40 +01:00
2017-01-04 19:18:40 +01:00
2014-11-19 16:21:59 -05:00
2016-05-23 11:48:30 -04:00
2017-03-18 12:37:57 +01:00
2017-03-18 12:37:57 +01:00
2017-03-18 12:37:57 +01:00
2016-10-13 17:33:16 +02:00
2017-03-22 21:41:02 +01:00
2017-01-18 23:21:01 +01:00
2017-01-18 23:21:01 +01:00
2015-03-27 15:00:48 -04:00