Skip to content

Conversation

@mjbvz
Copy link
Collaborator

@mjbvz mjbvz commented Mar 22, 2023

I noticed that ContextKeyService.updateParent was taking ~5ms, which causes jitter if it happens during scrolling in the interactive view

This PR reduces it's cost by doing the following:

  • Skip the call entirely if we already have the correct parent

  • Don't re-spread objects in collectAllValues

  • Return iterator directly instead of yield*ing it

I noticed that `ContextKeyService.updateParent` was taking ~5ms, which is a problem if it happens during scrolling

This PR reduces it's cost by doing the following:

- Skip the call entirely if we already have the correct parent

- Don't re-spread objects in `collectAllValues`

- Return iterator directly instead of yield*ing it
@mjbvz mjbvz added this to the April 2023 milestone Mar 22, 2023
@mjbvz mjbvz requested a review from jrieken March 22, 2023 21:19
@mjbvz mjbvz self-assigned this Mar 22, 2023
@mjbvz mjbvz enabled auto-merge (squash) March 28, 2023 18:50
@mjbvz mjbvz modified the milestones: April 2023, May 2023 Apr 24, 2023
@mjbvz mjbvz modified the milestones: May 2023, June 2023 May 31, 2023
@mjbvz mjbvz modified the milestones: June 2023, July 2023 Jun 27, 2023
@mjbvz mjbvz modified the milestones: July 2023, August 2023 Jul 24, 2023
@mjbvz mjbvz modified the milestones: August 2023, September 2023 Aug 31, 2023
@mjbvz mjbvz modified the milestones: September 2023, October 2023 Sep 26, 2023
@mjbvz mjbvz modified the milestones: October 2023, November 2023 Oct 24, 2023
@mjbvz mjbvz modified the milestones: November 2023, December 2023 Nov 29, 2023
@mjbvz mjbvz closed this Jan 23, 2024
auto-merge was automatically disabled January 23, 2024 18:32

Pull request was closed

@microsoft microsoft locked and limited conversation to collaborators Jun 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant