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

chore: speedup frequent element text normalization #29113

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

dgozman
Copy link
Contributor

@dgozman dgozman commented Jan 23, 2024

We cache ElementText for frequent operations, but then call normalizeWhitespace on it every time which burns a lot of CPU.

We cache `ElementText` for frequent operations, but then
call `normalizeWhitespace` on it every time which burns a lot of CPU.

This comment has been minimized.

Copy link
Contributor

Test results for "tests 1"

1 failed
❌ [installation tests] › playwright-component-testing.spec.ts:21:5 › pnpm: @playwright/experimental-ct-react should work

4 flaky ⚠️ [chromium] › library/tracing.spec.ts:243:5 › should not include trace resources from the previous chunks
⚠️ [firefox] › page/page-event-request.spec.ts:171:3 › should return response body when Cross-Origin-Opener-Policy is set
⚠️ [playwright-test] › ui-mode-test-screencast.spec.ts:21:5 › should show screenshots
⚠️ [webkit] › library/tracing.spec.ts:243:5 › should not include trace resources from the previous chunks

21330 passed, 579 skipped
✔️✔️✔️

Merge workflow run.

@dgozman dgozman merged commit 9b974e0 into microsoft:main Jan 23, 2024
27 of 30 checks passed
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants