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

Unload chunks that haven't been needed for some time #20

Open
rom1504 opened this issue Jan 5, 2016 · 3 comments
Open

Unload chunks that haven't been needed for some time #20

rom1504 opened this issue Jan 5, 2016 · 3 comments

Comments

@rom1504
Copy link
Member

rom1504 commented Jan 5, 2016

it's now possible since we have chunk loading/unloading.

One way to do it would be using the timestamp stored in region files

@rom1504
Copy link
Member Author

rom1504 commented Jul 13, 2020

@Karang
Copy link
Contributor

Karang commented Jul 13, 2020

https://en.wikipedia.org/wiki/Cache_replacement_policies#LRU would be a better policy IMO

@rom1504
Copy link
Member Author

rom1504 commented Jul 14, 2020

Yeah I was thinking about the case of a server where the spawn point might be unloaded with LRU if everyone disconnects and someone go explore somewhere far.
But LFU has its own issues.

LRU seems like a simple policy that should work, especially if the cache is big enough (like 20x20 chunks)

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

No branches or pull requests

2 participants