Skip to content

Why are codicon styles loaded with a timeout of 0? #101265

@bpasero

Description

@bpasero

Looking at this code:

const delayer = new RunOnceScheduler(updateAll, 0);

We seem to be computing a stylesheet and setting it with a timeout of 0. On Windows this shows up as perf hit:

image

This will trigger the "Recalculate Style" in the browser.

What is the rationale here? Can we compute this and inline it?

Profile-20200629T095103.zip

//cc @misolori @jrieken

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions