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

Add systraces on Android #565

Merged
merged 2 commits into from
Dec 6, 2024
Merged

Add systraces on Android #565

merged 2 commits into from
Dec 6, 2024

Conversation

tomekzaw
Copy link
Collaborator

@tomekzaw tomekzaw commented Dec 5, 2024

Details

This PR adds systraces on Android for easier profiling.

Thanks to that I've noticed that applyMarkdownFormatting is executed twice per each keypress (at least parseNative is correctly memoized).

Screenshot 2024-12-05 at 23 07 46

I will try to find a fix for that in a separate PR.

Related Issues

GH_LINK

Manual Tests

Linked PRs

@tomekzaw tomekzaw requested a review from j-piasecki December 5, 2024 22:12
mPrevText = text;
mPrevParserId = parserId;
mPrevMarkdownRanges = Collections.emptyList();
mPrevMarkdownRanges = markdownRanges;
Copy link
Collaborator

Choose a reason for hiding this comment

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

That's a weird looking systrace 🤔

@tomekzaw tomekzaw merged commit 0391655 into main Dec 6, 2024
5 checks passed
@tomekzaw tomekzaw deleted the @tomekzaw/android-add-systraces branch December 6, 2024 22:59
@os-botify
Copy link
Contributor

os-botify bot commented Dec 6, 2024

🚀 Published to npm in 0.1.199 🎉

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