Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
KDevelop
KDevelop
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 28
    • Merge Requests 28
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • KDevelop
  • KDevelopKDevelop
  • Merge Requests
  • !114

The source project of this merge request has been removed.
Closed
Opened Mar 09, 2020 by Milian Wolff@mwolffDeveloper
  • Report abuse
Report abuse

Only cache PCH and completion results for files opened in editor

  • Overview 8
  • Changes 4

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.

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: kdevelop/kdevelop!114
Source branch: clang-limit-pch-generation