Closed TheZoq2 closed 1 month ago
Thanks for this PR. I would prefer a solution where a temp file is used when available, and we fall back to a Vec otherwise. I can try to implement that myself. Just give me a couple of days.
Sounds good!
This should hopefully fix the wasm issue: https://gitlab.com/surfer-project/surfer/-/merge_requests/486
This is the change I made: https://github.com/ekiwi/fst-native/commit/e43210fb8829d987c9dc28113c25167584beaa1f
Fixes https://github.com/ekiwi/wellen/issues/25 though presumably this has some RAM usage consequences.
I briefly attempted a
#[cfg(target_arch=wasm)
-specific fix to not change too much, but that would require#[cfg]-ing
the output ofuncompress_gzip_wrapper
which becomes annoyingI also tried making the return type be
impl Read+Seek
but that requires adding generic arguments in more places.For now without knowing the performance implications of this, I think it is the best solution