Commit Graph
8 Commits
Author SHA1 Message Date
Tunglies 764ef48fd1 refactor(Draft): Replace latest() with latest_ref() and data() with data_mut() in multiple files for improved mutability handling and consistency across the codebase (#3987)
* feat: add benchmarking for draft operations and new draft management structure

* Refactor Config Access: Replace `latest()` with `latest_ref()` and `data()` with `data_mut()` in multiple files for improved mutability handling and consistency across the codebase.

* refactor: remove DraftNew implementation and related benchmarks for cleaner codebase
2025-07-04 22:43:23 +08:00
Tunglies 689042df60 refactor: use Box to store large config objects and add memory usage tests
- Refactored config-related structs to use Box for storing large objects (e.g., IRuntime, IProfiles, PrfItem) to reduce stack memory usage and improve performance.
- Updated related methods and assignments to handle Boxed types correctly.
- Added and improved unit tests to compare memory usage between Boxed and non-Boxed config objects, demonstrating the memory efficiency of Box.
- Test output now shows the size difference between stack-allocated and heap-allocated (Box) config objects.
2025-06-06 14:54:48 +08:00
GyDi 9888f2a322 chore: fix rust lint 2023-10-11 14:55:20 +08:00
GyDi bedd3abf8a refactor: done 2022-11-18 18:18:41 +08:00
GyDi 84c12dee80 refactor: wip 2022-11-17 17:07:13 +08:00
GyDi f5f865a139 refactor: wip 2022-11-16 01:26:41 +08:00
GyDi 902aed671a refactor: wip 2022-11-15 01:33:50 +08:00
GyDi a964b30c34 feat: add draft 2022-11-14 19:31:22 +08:00