JohnnyMorganz / luau-lsp

Language Server Implementation for Luau
MIT License
245 stars 58 forks source link

Investigate startup performance when parsing sourcemap file #827

Open JohnnyMorganz opened 2 days ago

JohnnyMorganz commented 2 days ago

On startup in my example codebase, it takes 11s to call WorkspaceFolder::setupWithConfiguration, where 8s is the cost to update the sourcemap. We will pay this sourcemap cost whenever the sourcemap changes. We should see if there are any performance gains from sourcemap parsing.

image

JohnnyMorganz commented 2 days ago

Seems to mainly come from writePathsToMap

image