Skip to content

Background indexing is too slow / demanding #1837

@MahdiBM

Description

@MahdiBM

Swift version

Swift 6.0.2 release

Platform

macOS 15

Editor

VS Code

Description

Background indexing looks to be 2-5x slower than Xcode's mechanism, and that's already a low bar to meet.

Perhaps we can have some benchmarks for sourcekit-lsp (through a package like ordo-one/package-benchmark), then we can both make sure that this doesn't regress any further, and also try to optimize it slowly but surely.

We'll need to discuss how to set up the benchmarking, if that's desirable.

Steps to Reproduce

Enable background indexing on a big-enough project.

Logging

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions