Michael Vetter
ea7a59808a
refactor: optimize prof_occurrences()
...
Optimize prof_occurrences by using pointer arithmetic and
g_utf8_next_char instead of calls to g_utf8_offset_to_pointer.
Improve list construction efficiency in prof_occurrences by
using g_slist_prepend and g_slist_reverse instead of appends.
Also fix a slight oversight that could lead to trouble:
When empty search strings (e.g. empty nicks) are passed
it caused matches at every position.
Update the test case to test for empty nicks.
2026-02-25 12:40:32 +01:00
..
2025-08-06 15:52:33 +02:00
2025-08-06 15:52:33 +02:00
2026-02-20 16:13:31 +01:00
2025-08-06 15:52:33 +02:00
2026-02-20 16:25:47 +01:00
2025-08-06 15:52:33 +02:00
2025-03-07 21:09:16 +01:00
2024-08-05 12:14:09 +02:00
2025-08-06 15:52:33 +02:00
2025-08-06 15:52:33 +02:00
2025-08-06 15:52:33 +02:00
2023-11-01 18:30:08 -06:00
2026-02-23 18:28:49 +01:00
2020-07-07 14:18:57 +02:00
2025-08-06 15:52:33 +02:00
2020-07-07 14:18:57 +02:00
2025-08-06 15:52:33 +02:00
2021-08-26 00:28:49 +00:00
2025-08-06 15:52:33 +02:00
2020-07-07 14:18:57 +02:00
2025-08-06 15:52:33 +02:00
2020-07-07 14:18:57 +02:00
2025-08-06 15:52:33 +02:00
2020-07-07 14:18:57 +02:00
2025-08-06 15:52:33 +02:00
2020-07-07 14:18:57 +02:00
2025-08-06 15:52:33 +02:00
2020-07-07 14:18:57 +02:00
2025-08-06 15:52:33 +02:00
2020-07-07 14:18:57 +02:00
2025-08-06 15:52:33 +02:00
2020-07-07 14:18:57 +02:00
2025-08-06 15:52:33 +02:00
2020-07-07 14:18:57 +02:00
2025-08-06 15:52:33 +02:00
2020-07-07 14:18:57 +02:00
2025-08-06 15:52:33 +02:00
2020-07-07 14:18:57 +02:00
2025-08-06 15:52:33 +02:00
2023-04-13 16:41:21 +02:00
2025-08-06 15:52:33 +02:00
2020-07-07 14:18:57 +02:00
2026-02-25 12:40:32 +01:00
2026-02-25 12:40:32 +01:00
2025-08-06 15:52:33 +02:00
2020-07-07 14:18:57 +02:00
2025-08-06 15:52:33 +02:00
2020-07-07 14:18:57 +02:00
2025-08-06 15:52:33 +02:00
2020-07-07 14:18:57 +02:00
2025-08-06 15:52:33 +02:00
2021-08-26 00:28:49 +00:00
2025-08-06 15:52:33 +02:00
2023-11-01 18:30:08 -06:00
2025-08-06 15:52:33 +02:00
2020-07-07 14:18:57 +02:00
2025-08-06 15:52:33 +02:00
2020-07-07 14:18:57 +02:00
2025-08-06 15:52:33 +02:00
2020-07-07 14:18:57 +02:00
2025-08-06 15:52:33 +02:00
2021-06-30 18:58:07 -04:00
2025-08-06 15:52:33 +02:00
2020-07-07 14:18:57 +02:00
2026-02-25 12:40:32 +01:00