Skip to content

Improve extension activation performance #1804

@bwateratmsft

Description

@bwateratmsft

(Self explanatory)

Here's the data from a webpacked activation:

{
	"messages": [],
	"activationTimes": {
		"codeLoadingTime": 1537,
		"activateCallTime": 14,
		"activateResolvedTime": 3152,
		"activationReason": {
			"startup": false,
			"extensionId": {
				"value": "ms-azuretools.vscode-docker",
				"_lower": "ms-azuretools.vscode-docker"
			},
			"activationEvent": "onView:dockerContainers"
		}
	},
	"runtimeErrors": []
}

From not-webpacked activation:

{
	"messages": [],
	"activationTimes": {
		"codeLoadingTime": 9422,
		"activateCallTime": 5,
		"activateResolvedTime": 3082,
		"activationReason": {
			"startup": false,
			"extensionId": {
				"value": "ms-azuretools.vscode-docker",
				"_lower": "ms-azuretools.vscode-docker"
			},
			"activationEvent": "onView:dockerContainers"
		}
	},
	"runtimeErrors": []
}

So our actual activation takes ~3 seconds, and code loading from ~1.5 seconds (webpacked) to 9.5 seconds (not webpacked).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions