DarkflameServer/dDatabase
David Markowitz c6087ce77a
perf: Loot memory savings (#1165)
* Move away from constructor queries

Fix up other large tables to have proper backup lookups

Revert "idk im just dumb ig"

This reverts commit 5d5be5df53b8959b42b291613d7db749a65a3585.

idk im just dumb ig

* Fix slow components registry lookup

* add define for cdclient cache all

* Huge loot namespace rework

- Remove all excess memory usage
- do not cache components registry
- cache loot matrices on startup of the destroyable component
- convert loot singleton class to a namespace
- rework loot cdclient tables to operate closer to how someone would actually use them (basically doing the previous LootGenerator::LootGenerator caching but in those tables)
- Memory usage reduced by 10%+ across the board

* cache rebuild matrix

* Database: move reading to own function

Also change name of cache to PascalCase

* Database: Move common function rading
2023-10-09 15:33:22 -05:00
..
Tables perf: Loot memory savings (#1165) 2023-10-09 15:33:22 -05:00
CDClientDatabase.cpp Add automatic cdclient migration runner support and setup (#789) 2022-10-30 00:38:43 -07:00
CDClientDatabase.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDClientManager.cpp perf: Loot memory savings (#1165) 2023-10-09 15:33:22 -05:00
CDClientManager.h Remove inlines 2023-03-26 02:59:46 -07:00
CMakeLists.txt Update CMake configuration for easier maintenance (#642) 2022-07-17 00:24:16 +01:00
Database.cpp Address socket issues with MariaDB 2022-11-07 01:26:15 -08:00
Database.h Address Brick-By-Brick builds not properly saving and make migrations automatic (#725) 2022-10-24 17:20:36 -05:00
MigrationRunner.cpp Update MigrationRunner.cpp (#911) 2022-12-22 06:06:59 -06:00
MigrationRunner.h Add automatic cdclient migration runner support and setup (#789) 2022-10-30 00:38:43 -07:00