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

[Perf] Fix JSON processing on UI thread #35695

Closed
atuchin-m opened this issue Jan 30, 2024 · 7 comments · Fixed by brave/brave-core#21833
Closed

[Perf] Fix JSON processing on UI thread #35695

atuchin-m opened this issue Jan 30, 2024 · 7 comments · Fixed by brave/brave-core#21833
Assignees
Labels
OS/Android Fixes related to Android browser functionality OS/Desktop perf perf-regression An perf browser issue by the perf dashboard priority/P2 A bad problem. We might uplift this to the next planned release. QA Pass - Android ARM QA Pass-macOS QA/Yes release-notes/exclude

Comments

@atuchin-m
Copy link
Contributor

Found here: #35693 (comment)
image

@atuchin-m atuchin-m added priority/P2 A bad problem. We might uplift this to the next planned release. perf OS/Android Fixes related to Android browser functionality OS/Desktop perf-regression An perf browser issue by the perf dashboard labels Jan 30, 2024
@atuchin-m atuchin-m self-assigned this Jan 30, 2024
@atuchin-m
Copy link
Contributor Author

@petemill
Copy link
Member

Just to note that we're agreed the main performance improvement here should first be to remove the processing off the main thread, and not adjust the request timing. We can improve that but need to consider the needs of Desktop, Android and the various UI which needs the data.

@atuchin-m
Copy link
Contributor Author

a linked issue: #35778

@kjozwiak
Copy link
Member

@atuchin-m mind double checking/ensuring that the performance issues have been resolved once we get 1.63.x builds with the above fix? Some context via https://bravesoftware.slack.com/archives/CHGKGMHDJ/p1707869423133049.

@kjozwiak kjozwiak added QA/Yes and removed QA/No labels Feb 14, 2024
@kjozwiak
Copy link
Member

kjozwiak commented Feb 14, 2024

Going to add the QA/Yes as we can basically run through some spot checks and ensure that Brave News is working correctly/not crashing as per brave/brave-core#21833 (comment). The above requires 1.63.154 or higher for 1.63.x verification 👍

@kjozwiak
Copy link
Member

Verification PASSED on Pixel 6 running Android 14 using the following build(s):

Brave | 1.63.155 Chromium: 122.0.6261.29 (Official Build) (64-bit)
--- | ---
Revision | b2be2c6f5b7340629f672ce706f5bfd62b113f82
OS | Android 14; Build/AP11.231215.009; 34; REL
  • ensured that the Brave News onboarding card is being displayed by default via NTP without any issues
    • ensured that the modal/card is animated/working as expected in terms of performance (not seeing any jank)
  • ensured that enabling & disabling the feature within Settings works as expected
    • ensured when Brave News is disabled, it doesn't appear within NTP
    • ensured once Brave News is enabled once again, it's visible/scrollable via NTP (ensured there's no visible performance issues)
  • ensured that scrolling through the Brave News feed is a smooth experience
  • ensured that inline ads are being displayed within the news feed
    • ensured that tapping/clicking on inline ads works as expected (opens the tab/no crashes etc..)
  • ensured that tapping on cards opens the website/content without any issues
  • ensured that Load new content works as expected when adding feeds from Popular, Suggestions & Channels
  • ensured that tapping/clicking on Learn more about your data opens the website within the WebUI without issues
    • ensured that pressing X closes the website and returns the user back into the Settings page where they can enable news

@stephendonner
Copy link

stephendonner commented Feb 16, 2024

Verification PASSED using

Brave | 1.63.155 Chromium: 122.0.6261.29 (Official Build) (x86_64)
-- | --
Revision | b2be2c6f5b7340629f672ce706f5bfd62b113f82
OS | macOS Version 14.4 (Build 23E5196e)

Steps:

  1. installed 1.63.155
  2. launched Brave
  3. cilcked the Learn More link on the Enable Brave News popup
  4. navigated back
  5. confirmed the page did NOT crash
  6. clicked on Turn on Brave News
  7. confirmed the publishers loaded
  8. confirmed the (main) feed loaded
  9. disabled Brave News
  10. enabled Brave News
  11. confirmed the publishers loaded
  12. confirmed the (main) feed loaded
  13. disabled Brave news
  14. refreshed the page
  15. enabled Brave News
  16. confirmed the publishers loaded

Confirmed the (main) feed loaded and was dynamically rebuilt/reloaded, after toggling On/Off, without any crashing or hanging

example example example example example example example example example
Screenshot 2024-02-15 at 11 25 57 PM Screenshot 2024-02-15 at 11 26 00 PM Screenshot 2024-02-15 at 11 26 05 PM Screenshot 2024-02-15 at 11 26 11 PM Screenshot 2024-02-15 at 11 26 14 PM Screenshot 2024-02-15 at 11 27 06 PM Screenshot 2024-02-15 at 11 27 15 PM Screenshot 2024-02-15 at 11 27 24 PM Screenshot 2024-02-15 at 11 28 09 PM
example example example example example example example example example
Screenshot 2024-02-15 at 11 31 01 PM Screenshot 2024-02-15 at 11 34 19 PM Screenshot 2024-02-15 at 11 34 27 PM Screenshot 2024-02-15 at 11 34 34 PM Screenshot 2024-02-15 at 11 35 10 PM Screenshot 2024-02-15 at 11 34 47 PM Screenshot 2024-02-15 at 11 34 54 PM Screenshot 2024-02-15 at 11 34 59 PM Screenshot 2024-02-15 at 11 35 05 PM

@stephendonner stephendonner added QA/In-Progress Indicates that QA is currently in progress for that particular issue QA Pass-macOS and removed QA/In-Progress Indicates that QA is currently in progress for that particular issue labels Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS/Android Fixes related to Android browser functionality OS/Desktop perf perf-regression An perf browser issue by the perf dashboard priority/P2 A bad problem. We might uplift this to the next planned release. QA Pass - Android ARM QA Pass-macOS QA/Yes release-notes/exclude
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants