swiftlang / sourcekit-lsp

Language Server Protocol implementation for Swift and C-based languages
Apache License 2.0
3.33k stars 280 forks source link

Background indexing is too slow / demanding #1837

Open MahdiBM opened 1 week ago

MahdiBM commented 1 week ago

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

ahoppen commented 1 week ago

Synced to Apple’s issue tracker as rdar://140191254