Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defer updating screen reader content when no in a11y mode #163677

Merged
merged 2 commits into from
Oct 18, 2022
Merged

Conversation

Tyriar
Copy link
Member

@Tyriar Tyriar commented Oct 14, 2022

Before TextAreaHandler.onCursorStateChanged was taking approximately 4-16% of the total keypress task's runtime (it varies pretty wildly). After this is becomes < 0.5ms

Part of #161622


Testing methodology outlined in #161622 (comment)

Before:

Screen Shot 2022-10-14 at 11 10 07 am

After:

Screen Shot 2022-10-14 at 11 09 03 am

@alexdima anything in particular I should test here? The behavior should be the same when a11y mode is on and text input seems to work fine when it's off.

@Tyriar Tyriar added this to the October 2022 milestone Oct 14, 2022
@Tyriar Tyriar requested a review from alexdima October 14, 2022 18:10
@Tyriar Tyriar self-assigned this Oct 14, 2022
Before TextAreaHandler.onCursorStateChanged was taking approximately 4-16%
of the total keypress task's runtime. After this is becomes < 0.5ms.

Part of #161622
Copy link
Member

@alexdima alexdima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for looking into this! This is great! I just left two small comments.

src/vs/editor/browser/controller/textAreaHandler.ts Outdated Show resolved Hide resolved
src/vs/editor/browser/controller/textAreaHandler.ts Outdated Show resolved Hide resolved
@Tyriar Tyriar requested a review from alexdima October 17, 2022 12:33
@Tyriar Tyriar merged commit 3747d22 into main Oct 18, 2022
@Tyriar Tyriar deleted the tyriar/161622 branch October 18, 2022 16:50
@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2022
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.

2 participants