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

Put a cap on the size of serialized QVariant objects #546

Open
ThomasKroes opened this issue Mar 14, 2024 · 0 comments
Open

Put a cap on the size of serialized QVariant objects #546

ThomasKroes opened this issue Mar 14, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ThomasKroes
Copy link
Contributor

Problem

Currently, the serialization routine stores any size of QVariant in the JSON files it produces (project.json and workspace.json). This means that, without supervision, these files can become very large if the data contained in the QVariant is exceptionally large (think of 250k strings in a QStringList).

Solution

Intercept the routine which stores/restores QVariants to and from JSON. For this, we can re-use the work from #545 for using binary files to store large QVariants.

@ThomasKroes ThomasKroes added the enhancement New feature or request label Mar 14, 2024
@ThomasKroes ThomasKroes self-assigned this Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant