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

Fix for massive amounts of cards failing to load due to v8 engine limitations #1893

Closed
wants to merge 1 commit into from

Conversation

kingbased
Copy link
Contributor

This is something that has annoyed me and I've had it fixed in my build for a few months now so I might as well bring it over.

If you have too many cards or something, getCharacters() will completely fail because it's reading/loading all chara cards in one big chunk. This is a problem because the v8 engine has a maximum string limit, which I've exceeded.

So this PR introduces JSON streaming into getCharacters and the backend endpoint so chara cards can be loaded in smaller chunks and basically bypass this limit.

@deffcolony deffcolony added 🟨 PR - Medium 🦋 Bug Fix [PR] Code includes bug fixes ⚰️ Stale [ISSUE] [PR] No activity for over 1 month labels Mar 29, 2024
Copy link

This pull request was automatically closed because it has been stalled for over 1 year with no activity.

@github-actions github-actions bot closed this Apr 15, 2024
@deffcolony deffcolony removed ⚰️ Stale [ISSUE] [PR] No activity for over 1 month 🕸️ Inactive labels Apr 15, 2024
@deffcolony deffcolony reopened this Apr 15, 2024
@github-actions github-actions bot added the 🚫 Merge Conflicts [PR] Submitted code needs rebasing label Apr 25, 2024
@kingbased kingbased closed this by deleting the head repository May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🦋 Bug Fix [PR] Code includes bug fixes 🚫 Merge Conflicts [PR] Submitted code needs rebasing 🟨 PR - Medium
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants