Skip to content

haskell-language-server starts up slowly #3578

Open
@mitchellwrosen

Description

@mitchellwrosen

Is your enhancement request related to a problem? Please describe.

I've set up a no-op project with the following files:

-- foo.cabal
cabal-version: 2.4
name: foo
version: 0

library
  build-depends: base
  exposed-modules: Foo
-- Foo.hs
module Foo where

With a warm build, that is, after a cabal build at the command line, followed by an opening and closing of Foo.hs once (after letting haskell-language-server initialize), I observe the following timings upon opening Foo.hs:

Screen Shot 2023-05-06 at 12 35 52 AM

where "processing" and "setting up" occur in parallel after "initializing" is complete.

"Initializing" here is the time between the client sending the "initialize" RPC request to haskell-language server and receiving a response.

"Processing" and "setting up" are just what haskell-language-server is reporting it's doing via progress handlers.

Describe the solution you'd like

Well, I'd like this to go much faster :) Or, at least, I wanted to draw attention to the slow startup time, in case it was not yet on anyone's radar who might be able to diagnose and improve.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    performanceIssues about memory consumption, responsiveness, etc.type: enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions