Files
openttd/src
Jonathan G Rennison 19835b51ee Move StationCargoList and FlowStatMap out of GoodsEntry struct
Move them into a new GoodsEntryData struct referenced
using a std::unique_ptr from GoodsEntry.
The unique_ptr may be nullptr if the cargo list and flow stat map
are both empty (this is the case for unused cargoes).

This reduces GoodsEntry from 128 to 24 bytes,
and Station from 8680 to 2024 bytes,
(on Linux x86_64).
2023-08-19 21:24:29 +01:00
..
2023-08-19 10:18:31 +01:00
2023-05-26 20:08:05 +01:00
2023-08-19 01:28:36 +01:00
2022-11-05 19:24:44 +00:00
2023-08-19 13:47:14 +01:00
2023-07-03 23:44:54 +01:00
2023-04-12 19:34:11 +01:00
2023-07-03 23:44:54 +01:00
2023-06-05 21:26:41 +01:00
2023-05-30 18:57:42 +01:00
2023-05-28 10:20:52 +01:00
2023-07-02 12:02:36 +01:00
2023-05-22 19:50:45 +01:00
2023-07-04 19:01:52 +01:00
2023-05-28 10:20:52 +01:00
2023-07-03 23:44:54 +01:00
2022-11-05 17:19:00 +00:00
2023-04-12 19:34:11 +01:00
2023-07-03 23:44:54 +01:00
2023-07-01 02:42:51 +01:00
2023-06-08 00:01:38 +01:00
2023-07-02 12:02:36 +01:00
2023-07-09 12:43:21 +01:00
2023-08-19 01:28:36 +01:00
2023-08-19 01:28:36 +01:00
2023-08-19 01:28:36 +01:00
2023-07-04 00:26:00 +01:00
2023-07-03 22:42:59 +01:00
2023-07-03 23:44:54 +01:00
2023-07-03 23:44:54 +01:00
2023-08-18 21:25:36 +01:00
2023-07-01 02:42:51 +01:00
2023-07-02 12:02:36 +01:00
2023-05-31 23:21:38 +01:00
2023-02-11 23:05:22 +00:00
2023-08-19 01:28:36 +01:00
2023-05-30 00:49:24 +01:00
2023-06-03 19:16:57 +01:00
2023-07-02 12:02:36 +01:00
2023-07-02 12:02:36 +01:00
2023-07-02 12:02:36 +01:00
2023-07-01 02:42:51 +01:00
2023-07-03 23:44:54 +01:00
2023-07-03 23:44:54 +01:00
2023-07-03 22:42:59 +01:00
2023-07-02 12:02:36 +01:00
2023-05-26 20:08:05 +01:00
2023-07-03 23:44:54 +01:00
2023-07-03 23:44:54 +01:00
2023-07-03 23:44:54 +01:00
2023-07-03 23:44:54 +01:00
2023-07-02 12:02:36 +01:00
2023-08-19 18:15:34 +01:00
2023-07-03 23:44:54 +01:00
2023-07-02 12:02:36 +01:00
2023-07-01 02:42:51 +01:00
2023-07-03 23:44:54 +01:00
2023-06-03 11:07:01 +01:00
2023-07-03 23:44:54 +01:00
2023-04-10 15:11:53 +01:00
2023-07-01 02:42:51 +01:00
2023-08-19 01:28:36 +01:00
2023-02-15 22:52:35 +00:00
2023-08-16 18:55:44 +01:00
2023-07-02 12:02:36 +01:00
2021-04-05 17:51:45 +01:00
2023-07-03 23:44:54 +01:00
2023-07-02 12:02:36 +01:00
2023-07-01 02:42:51 +01:00
2023-06-08 00:01:38 +01:00
2023-07-02 12:02:36 +01:00
2023-07-01 02:42:51 +01:00
2021-12-06 19:33:36 +00:00
2023-04-12 19:34:11 +01:00
2022-11-05 19:24:44 +00:00
2023-07-03 23:44:54 +01:00
2023-07-03 23:44:54 +01:00
2023-05-26 20:08:05 +01:00
2023-05-26 19:36:48 +01:00
2023-07-09 12:43:21 +01:00
2023-05-30 00:49:24 +01:00
2023-05-31 23:21:38 +01:00
2023-05-30 00:49:24 +01:00
2023-07-02 12:02:36 +01:00
2023-06-03 19:16:57 +01:00
2023-07-02 12:02:36 +01:00
2023-07-02 12:02:36 +01:00
2023-07-01 02:42:51 +01:00
2023-07-02 12:02:36 +01:00
2023-07-03 23:44:54 +01:00
2023-06-03 19:16:57 +01:00
2021-10-29 21:18:19 +01:00
2023-07-02 12:02:36 +01:00
2023-07-02 12:02:36 +01:00
2023-07-03 23:44:54 +01:00
2023-07-03 23:44:54 +01:00
2023-07-03 23:44:54 +01:00
2023-06-25 00:04:11 +01:00
2023-04-12 19:34:11 +01:00
2023-07-01 02:42:51 +01:00
2023-07-01 02:42:51 +01:00
2023-07-01 02:42:51 +01:00
2023-08-16 18:55:44 +01:00
2022-12-04 20:43:11 +00:00