22 Commits

Author SHA1 Message Date
apocelipes
0a61031463
tests: add FFstrbuf smallest allocation test & minor fix (#1387) 2024-11-11 07:58:24 +08:00
李通洲
4d7d367e72 FFstrbuf: add new methods ffStrbufPrependC and ffStrbufInsertNC 2024-09-26 14:34:51 +08:00
李通洲
c795c20723
FFstrbuf: improve ffStrbufSubstr* 2024-07-16 15:39:06 +08:00
李通洲
8801921d02 Smbios: trim spaces 2024-01-06 18:33:57 +08:00
apocelipes
4868517d53 optimize(IO): reduce memory usage during reading data from files to FFstrbufs
Avoid unnecessary calls of ffStrbufEnsureFree and only allocate
necessary memory.

In most cases, this will save 30% ~ 50% of memory used by ffAppendFDBuffer.
2023-12-03 19:57:49 +08:00
李通洲
e4c1ec916b
FFstrbuf: change ffStrbufToUInt16 to more general function ffStrbufToUInt 2023-09-26 09:52:10 +08:00
李通洲
0d5cf52f08
FFstrbuf: add ffStrbufAppendNC 2023-09-15 10:35:12 +08:00
李通洲
309d1d2130
FFstrbuf: add ffStrbufCreateStatic 2023-07-25 17:35:09 +08:00
李通洲
e685a00a4b
FFstrbuf: remove ffStrbufRemoveStringsV; rename ffStrbufRemoveStringsA to ffStrbufRemoveStrings 2023-07-25 17:35:09 +08:00
李通洲
c7119498a3 Global: major FFstrbuf related code refactor 2023-06-10 09:15:15 +08:00
李通洲
822496808d
Windows: look for config files in $LOCALAPPDATA 2023-01-02 16:34:57 +08:00
李通洲
5efd7b9ac4
FFstrbuf: add ffStrbufContainC 2022-12-29 11:03:33 +08:00
李通洲
b4e2997389 Tests: don't include fastfetch.h 2022-12-08 18:29:24 +08:00
李通洲
983bd50a09
FFstrbuf: improve performance of InitF 2022-12-06 16:27:00 +08:00
李通洲
8b0d034a94
FFstrbuf: fix bug of AppendF when string len == ffStrbufGetFree 2022-12-02 22:20:01 +08:00
李通洲
47a0b8969f
FFstrbuf: more inline fns and more tests 2022-09-26 14:57:54 +08:00
李通洲
737b36e799
FFstrbuf / FFlist: add some improvements
1. make some short fns inlinable
2. simplify implementation
3. fix possible crashes with non-allocated strbuf
4. make the default init fn allocates no memory
5. add more tests
2022-09-24 22:18:48 +08:00
李通洲
484264027c
FFstrbuf: don't free string literals 2022-09-23 15:33:23 +08:00
李通洲
6eed53217d FFstrbuf: fix bugs in ffStrbufAppendS; add more tests 2022-09-20 23:56:43 +08:00
Linus Dierheimer
d387800bda
Separate host detection and printing logic 2022-09-04 12:43:30 +02:00
Linus Dierheimer
707e0f930d
Refactor: don't include FFvaluestore global 2022-07-25 19:54:33 +02:00
Linus Dierheimer
33127388f0
refactored FFstrbuf 2022-01-12 01:02:14 +01:00