Skip to content

Comments

All: Fixes #13291: Improve performance of item deserialization#13585

Merged
laurent22 merged 2 commits intolaurent22:devfrom
personalizedrefrigerator:pr/sync/fix-slow-deserialize
Nov 3, 2025
Merged

All: Fixes #13291: Improve performance of item deserialization#13585
laurent22 merged 2 commits intolaurent22:devfrom
personalizedrefrigerator:pr/sync/fix-slow-deserialize

Conversation

@personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Oct 30, 2025

Summary

Significantly improves the performance of BaseItem.deserialize.

Fixes #13291.
May fix #13390.

const start = performance.now();
await Note.unserialize(serialized);
// Locally, this passes in in < 2s, so 2 mins should be a safe upper bound.
expect(performance.now() - start).toBeLessThan(2 * Minute);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be ok to aim for example for 30 seconds?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed.

@laurent22 laurent22 merged commit 6daa41c into laurent22:dev Nov 3, 2025
11 checks passed
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

Successfully merging this pull request may close these issues.

Server: Processing large notes in /api/items can be extremely slow and blocks the server

2 participants