wordpress-mobile / wordpress-mobile/WordPress-iOS
Performance Issue: slow RequestAuthenticator
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 3.9k
- Forks
- 1.2k
- Avg merge
- 23h 51m
- Merged PRs (30d)
- 58
Description
Actual behavior
The web view takes 2-3 seconds more than usual to load a page.
The same page with no authenticator but with the cookies in the shared storage task about 1 second to load.
It takes more than 3 seconds to load with an authenticator.
Steps to reproduce the behavior
- Create a
WebKitViewControllerconfigured withRequestAuthentificator - Open a web page
Tested on [device], iOS [version], Jetpack iOS / WordPress iOS [version]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at WebKitViewController and RequestAuthentificator, then profile the page-load path with and without the authenticator. Compare the shared-storage cookie case against the authenticator case and identify where the additional delay occurs. Done means the cause is isolated and the authenticated load no longer incurs the reported extra latency, with measurements on a specified device and iOS version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- authentication, mobile, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100