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

Idea: Dynamic compression #28

Open
i-rme opened this issue Jul 10, 2018 · 0 comments
Open

Idea: Dynamic compression #28

i-rme opened this issue Jul 10, 2018 · 0 comments

Comments

@i-rme
Copy link

i-rme commented Jul 10, 2018

Currently itty-bitty uses lzma for compression, this is ok for general content but I believe that trying language-optimized dictionary compression methods could be interesting.

Here is an idea for a possible approach:

  • Implement several compression algorithms (lzma, html tags, english dictionary, spanish, both, etc)
  • On link creation, the edit page should try all the compression methods to decide which one of them is more suitable for the text requested.
  • The first character of the URL would indicate the compression algorithm used.

This way we could have shorter urls if the user writes an article using common words in one or two languages.

I don't know how much this approach could help, but here is the idea if someone wants to do the math.

@alcor alcor added this to the post-validation milestone Jul 11, 2018
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

2 participants