Skip to content

feat(readrift): optimize initial load - #2944

Open
matthewsong18 wants to merge 3 commits into
dteviot:ExperimentalTabModefrom
matthewsong18:optimize-readrift-initial-load
Open

feat(readrift): optimize initial load#2944
matthewsong18 wants to merge 3 commits into
dteviot:ExperimentalTabModefrom
matthewsong18:optimize-readrift-initial-load

Conversation

@matthewsong18

Copy link
Copy Markdown
Contributor

Problem:

Initial load (populating the chapter list) for a novel with 300 chapters took around 21 seconds, which is pretty bad. Mb guys.

Solution:

I originally copied the ToC pagination amount of 10, but by pinging the server, turns out the limit is actually 30. I also made the delay between requests a bit smaller at 150 to 250 ms with a jitter compared to the original 300 ms.

Overall, 64.52% less requests and initial load is around 3 times faster.

  • Old: 31 requests finished in 21.25 seconds
  • New: 11 requests finished in 6.45 seconds

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.

1 participant