wordpress-mobile / wordpress-mobile/WordPress-iOS

Performance Issue: slow RequestAuthenticator

Open
#22,497 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Pri] Low [Type] Bug Webviews
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 WebKitViewController configured with RequestAuthentificator
  • Open a web page
Tested on [device], iOS [version], Jetpack iOS / WordPress iOS [version]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.