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

Compact the written state in FilePersistence #7

Open
oxlade39 opened this issue Feb 7, 2014 · 0 comments
Open

Compact the written state in FilePersistence #7

oxlade39 opened this issue Feb 7, 2014 · 0 comments

Comments

@oxlade39
Copy link
Owner

oxlade39 commented Feb 7, 2014

io.github.oxlade39.storrent.persistence.FilePersistence uses a Set of offsets to keep track of the current sequential bytes. When offsets overlap they are equivalent to the total offset from min start to max end. Compacting the Set of offsets would save memory space and improve performance of completion checks which iterate the Set.

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