Skip to content
This repository was archived by the owner on Aug 8, 2024. It is now read-only.

perf: stale page check #1019

Closed
wants to merge 6 commits into from
Closed

perf: stale page check #1019

wants to merge 6 commits into from

Conversation

cbt1
Copy link
Collaborator

@cbt1 cbt1 commented Jun 1, 2023

When the user scrolls, a scroll event listener starts a process to check if cells that are scrolled into view are missing data. When this is the case a request to fetch data for those missing cells is sent to Engine. But sometimes the user scrolls rather quickly, so quickly that some of the cells that where empty and needed data, are no longer in the visible view of the user.

This PR attempts to optimize that process, so that when a cell is no longer visible to the user and the data has not already been fetch. It's considered stale and not included in the next data fetch.

@cbt1 cbt1 requested review from haxxmaxx, quanho and a-m-dev June 1, 2023 09:36
qLeft <= colEndIndex &&
qTop >= rowStartIndex &&
qTop <= rowEndIndex &&
qLeft + qWidth >= colStartIndex &&
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note to self: Should be an OR not an AND operator between the points

@haxxmaxx
Copy link
Collaborator

haxxmaxx commented Sep 4, 2023

Looking through my review requests and found this. Should I take a look?

@cbt1
Copy link
Collaborator Author

cbt1 commented Sep 4, 2023

Looking through my review requests and found this. Should I take a look?

I think you can wait. It will take a look at the "note to self" when I get the time. It should still be valid.

@cbt1 cbt1 requested a review from a team as a code owner January 17, 2024 18:18
@cbt1
Copy link
Collaborator Author

cbt1 commented Jan 18, 2024

Closing, lets do something similar to PVT where fetching is throttled/debounced and uses two buffers

@cbt1 cbt1 closed this Jan 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants