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

Cancel request for particular cache range for views #2

Open
adamborowski opened this issue Jun 13, 2017 · 2 comments
Open

Cancel request for particular cache range for views #2

adamborowski opened this issue Jun 13, 2017 · 2 comments
Assignees
Milestone

Comments

@adamborowski
Copy link
Owner

As a view, when I change viewport range to other, I want to report to RequestManager that I do not longer need such ranges, so RequestManager can remove them from queue.
Thanks to that in case of fast paning/zooming we avoid to load data which won't be displayed due to fast range change.

@adamborowski
Copy link
Owner Author

additional function: smart batched request abortion
if released range belongs to pending batch request, it should abort the request if there are no more ranges in batch request. if there is something different in request, consider aborting and re-requesting remaining ranges

@adamborowski
Copy link
Owner Author

implementation details:
keep requested ranges with ref counters

request(range) {
    current_range.counter = 1
    result = current_range AND new range { cmpFn: a.levelId, a.counter}
    for range in result.resized: range.counter++
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant