Files
Waybar/include/modules
Austin Horstman 4c71b2bf9f perf(memory): optimize C++ string operations to reduce heap fragmentation
- Replaced pass-by-value std::string parameters with const std::string&
or std::string_view to prevent SSO overallocations.

- Refactored static mapping functions in UPower to return
std::string_view instead of constructing std::string literals, enabling
perfect cache locality.

- Optimized string concatenation in hot loops (network IPs, inhibitor
lists, sway window marks) by using std::string::append() and
pre-reserving capacity instead of overloaded operator+ which produces
temporary heap instances.

These optimizations reduce high-frequency memory churn and overall heap
fragmentation within the main rendering loops.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2026-03-02 22:54:07 -06:00
..
2026-02-04 09:24:14 +01:00
2026-02-04 09:24:14 +01:00
2026-02-20 08:16:56 -06:00
2026-02-04 09:24:14 +01:00
2026-02-04 09:24:14 +01:00
2026-02-24 00:49:08 +01:00
2026-02-04 09:24:14 +01:00
2023-10-15 17:52:12 -03:00
2026-02-08 13:32:41 +01:00
2023-10-17 19:29:06 +02:00
2024-02-19 23:10:10 +01:00
2026-02-04 09:24:14 +01:00
2025-06-22 10:01:36 +02:00
2025-08-16 15:34:43 -07:00
2026-02-04 09:24:14 +01:00
2023-10-17 19:29:06 +02:00
2026-02-04 09:24:14 +01:00
2026-02-04 09:24:14 +01:00