lexical-lsp / lexical

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

Made indexer return streams rather than lists #598

Closed scohen closed 4 months ago

scohen commented 4 months ago

The indexer would return a list of entries, and these entries were sent across process boundaries regularly (in the store, and in the reindex action), which would cause their memory usage to swell.

Returning a stream alleviates this pressure, and reduces the memory used by on the lexical project from 425Mb to 290Mb, a fairly significant savings.

Fixes #597