Skip to content

🐞 Attachments Storage Performance #94

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

Open
thecoolwinter opened this issue May 7, 2025 · 0 comments
Open

🐞 Attachments Storage Performance #94

thecoolwinter opened this issue May 7, 2025 · 0 comments

Comments

@thecoolwinter
Copy link
Contributor

thecoolwinter commented May 7, 2025

Description

With the new text attachments API , we're introducing a potential performance pitfall in the attachment storage object.

Right now, it stores attachments in an array ordered by range start location. This is fine for querying, as we can do a simple binary search to find attachments. However insertion and removal could be improved as they're both O(N) due to array modification performance.

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