File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,17 @@ Major New Features
47
47
Improvements to clangd
48
48
----------------------
49
49
50
- The improvements are...
50
+ - clangd's memory usage is significantly reduced on most Linux systems.
51
+ In particular, memory usage should not increase dramatically over time.
52
+
53
+ The standard allocator on most systems is glibc's ptmalloc2, and it creates
54
+ disproportionately large heaps when handling clangd's allocation patterns.
55
+ By default, clangd will now periodically call ``malloc_trim `` to release free
56
+ pages on glibc systems.
57
+
58
+ Users of other allocators (such as ``jemalloc `` or ``tcmalloc ``) on glibc
59
+ systems can disable this using ``--malloc_trim=0 `` or the CMake flag
60
+ ``-DCLANGD_MALLOC_TRIM=0 ``.
51
61
52
62
Improvements to clang-doc
53
63
-------------------------
You can’t perform that action at this time.
0 commit comments