Stream: t-compiler/wg-rls-2.0

Topic: Analyzer being super-slow on nightly


Eden (Mar 28 2020 at 09:58, on Zulip):

https://gist.github.com/trevyn/ef7bf53523215f43fdcf42d4e4341f87

And then "Extension host terminated unexpectedly."

std::Veetaha (Mar 28 2020 at 10:24, on Zulip):

@Eden
Any steps to reproduce?

Eden (Mar 28 2020 at 13:20, on Zulip):

sure, repro & instructions here: https://storage.googleapis.com/foom/repro.zip

std::Veetaha (Mar 28 2020 at 14:49, on Zulip):

Hmm, yeah I see 100% workload on the single core ;( image.png

std::Veetaha (Mar 28 2020 at 15:02, on Zulip):

This is what takes som much time:

48954ms - handle_code_action
    48824ms - diagnostics
        23319ms - SourceBinder::to_module_def
            23319ms - crate_def_map:wait
        25504ms - Module::diagnostics
            24458ms - Function::diagnostics
                24458ms - infer:wait @ dostuff
              385ms - Function::diagnostics
                  385ms - infer:wait @ fetchputiolist
                       13ms - parse_query
                      371ms - ???
Edwin Cheng (Mar 29 2020 at 04:50, on Zulip):

I also see a 100% peak, but it will be become normal after that peak (I am in Windows).
My non-educated guess, it related to that run function is a local function, when we changed that, somehow all infer information was discarded.

Last update: May 29 2020 at 16:50UTC