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

store tiny files inline in the index #154

Open
sourcefrog opened this issue Oct 27, 2020 · 0 comments
Open

store tiny files inline in the index #154

sourcefrog opened this issue Oct 27, 2020 · 0 comments
Labels
topic:performance type:format-change issues requiring an archive format change

Comments

@sourcefrog
Copy link
Owner

Files under about 100 bytes in length could be better stored directly in the index:

There is a complication that the 0.6 index format is encoded in json, which can't directly include binary content. Options here seem to be:

  • Only inline files whose content is a UTF-8 string. Many small files
  • base-64 escape the content (not very nice)
  • Wait to transition to a non-json index encoding, perhaps CBOR
@sourcefrog sourcefrog added type:format-change issues requiring an archive format change topic:performance labels Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic:performance type:format-change issues requiring an archive format change
Projects
None yet
Development

No branches or pull requests

1 participant