lexical-lsp / lexical

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

Use streams rather than lists of entries to avoid large messages from increasing process memory usage #597

Closed scohen closed 4 months ago

scohen commented 4 months ago

Using a stream can possibly help reduce the amount of memory a process takes on when a large message is passed to it. This is especially helpful during a full index, where hundreds of thousands of entries are created.