lexical-lsp / lexical

Lexical is a next-generation elixir language server
782 stars 77 forks source link

investigation: Improve memory usage of Search store / backends #584

Closed scohen closed 4 months ago

scohen commented 5 months ago

Things to try:

scohen commented 4 months ago

With the all of the above changes applied, the memory usage of lexical running in the lexical project dropped from 1200Mb to 435Mb.

scohen commented 4 months ago

Using streams reduces memory usage from 435Mb to 245Mb

scohen commented 4 months ago

Closing for now. When i started this investigation, Lexical consumed 1.2 gigabytes when running its own code. Now it's sitting comfortably at 330 megabytes.