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

Implement MRU cache #23

Open
paulstn opened this issue Feb 1, 2023 · 0 comments
Open

Implement MRU cache #23

paulstn opened this issue Feb 1, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@paulstn
Copy link
Owner

paulstn commented Feb 1, 2023

Switching to tabs when the order of tabs change and/or number of tabs change needs to be fixed.
Solution: Use a comprehensive cache that is a stack of tab ids - ids are unique (handles moving tabs) and the stack will present whatever tab is on top, if tabs need to be removed from the stack (handles deleted tabs). Will need logic to figure out where a tab's index is, or maybe even later cache indices for better performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants