-
Notifications
You must be signed in to change notification settings - Fork 1
Compress URL params #57
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
base: main
Are you sure you want to change the base?
Conversation
johantonelli
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm ![]()
| ;; 'my.app.thing :trace ;; Some namespaces you might want detailed logging | ||
|
|
||
| (defn- decompress-params [{:keys [uri-version] :as query-params}] | ||
| (let [decompress (case uri-version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be more intuitive to be an if if there's only one case with a default (I know, I'm a hypocrite)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left it like this because I’ve changed the uri format enough times to know I’ll change it again 😅
83ca72e to
a51ddc1
Compare
131cee8 to
72c21ab
Compare
3f1f430 to
3078315
Compare
|
Hey @Akeboshiwind what was your main objective with this? Want to make sure it's added for the right reasons |
uri-versionparameterI tested out both lz-string and fflate.
Using gzip with fflate is way smaller than lz-string in around the same time, but when I tried to url encode the output it 10x the output size 😅.