chore: decompress options, customDictionary exposed - #89
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Sure, I'm open to this. Can you split it up for review separately? I think there's at least 3 PRs in here:
Definitely happy to include custom dictionaries, medium term that's something I'm interested in using too. You mentioned memory management fixes, can you explain where those are in here? |
|
@pimterry Sure, it will be a pleasure. I'm trying to manage it in the upcoming days, but it could take a bit longer as I'm working on a few bigger projects in parallel currently. As my package currently uses my fork, I can at least for that specific rev say that the memory management issues reported earlier with the old WASM build my package was using simply disappeared with the new one; I cannot pinpoint the root cause right now, but it's simply not happening anymore. It's been a few years since I first implemented my package and linked it against an ancient rev of your nice work here -- so it could have a bunch of possible root causes that the memory management now works surprisingly well (including code changes in this repo, or even low-level WASM gen/bind generation). I don't have the bandwidth right now for cross-evaluations and some kind of PCA on this; but I guess we can simply run my new memory benchmark on the bundle and call it a day after verification that it doesn't leak - even without an exact root cause known. Call me lazy but if there is not issue... :D simple script: https://github.com/kyr0/brotli-compress/blob/main/bench/memory.mjs Btw for custom dictionary, one user already reported that it works fine now for them, providing more anecdotal evidence, underpinning my e2e tests... kyr0/brotli-compress#5 (comment) btw thanks again for your pioneering work back in the day! |
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
@pimterry Hi Tim, this PR is not ready to merge; I just wanted to share my work results with you for general review.
The following issues in my downstream project caused it:
Decompress options, Memory Management, Updated Deps and some work on customDictionary support and verification of its proper impl. solved all of my downstream issues in my fork.
I'd like to contribute whatever you find useful. Please tell me if this project is still maintained and which parts you'd like to accept. I'd willing to create actually useful small PRs by your suggestions.
Thank you for this project and your hard work.
Best,
Aron