Skip to content
Commit cc5d32e3 authored by Milian Wolff's avatar Milian Wolff
Browse files

Only cache PCH and completion results for files opened in editor

When opening large a project, we do not want to cache the PCH for
all its files. This is only required for currently opened files,
to speed up querying of code completion results.

For any other files, creating the PCH would just slow down the
parse process needlessly and also wastes memory when we keep the
PCH in memory through the temp files in /tmp. Note how we only
clean the DUChain when the parse job queue is idle. This also means
we don't detach the AST nodes and thus only discard the attached TUs
once the overall project parse job has finished.
parent 01e9f1b6
Pipeline #16863 passed with stage
in 44 minutes and 23 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment