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

Share and load huge game history #8

Closed
yvolk opened this issue Feb 22, 2022 · 1 comment
Closed

Share and load huge game history #8

yvolk opened this issue Feb 22, 2022 · 1 comment

Comments

@yvolk
Copy link
Member

yvolk commented Feb 22, 2022

In #4 we investigated a problem with sharing and loading games having about 50000 moves, and the app was optimized for that.
But some days ago one of my users sent me game history having 120713 moves. In order to allow sharing and loading such a huge history we need to switch completely from using one long string to saving and loading a game by chunks e.g. line by line from a file.
Screenshot_20220218-085607_2048_Open_Fun_Game

@yvolk
Copy link
Member Author

yvolk commented Mar 20, 2022

Now we Load and Share Game as Sequence of strings, not as a single text string to minimize memory usage. Successfully tested with a game having 120 thousand moves.

Implemented in v.1.12.0, see #1

@yvolk yvolk closed this as completed May 16, 2022
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

1 participant