And now comes the point where I wonder whether this was worth 8+ hours of porting and *40+* hours of bug hunting...
2
4
If 13% improvement gets you within a frame budget then yay. Otherwise oof, lots of effort for not a huge gain.
1
Somehow I don't think I'd be doing zlib compression on a per-frame basis, but I do have a ~15 second file save to shave time off of
1
1
Ouch! Able to serialise the data structure in RAM and then hive off a thread to deal with the save in the background in any useful manner?
1
It's for web, so while yes it could be instantiated on a worker thread, it would also add significant complexity to the compilation setup for each of our projects using the library (the dart dev compiler has trouble with workers, I have a way around it but it needs manual setup)
1
Oh ouch. I have no idea of the complexities there. Out of interes,t how did you prepare the WASM build? What language did you write it in? I am interested in WASM but have no idea how I'd go about learning.
1
AssemblyScript, because it's the one which needed least setup and was most familiar to me - it's probably producing worse output though, which might be a cause for less of a performance gain than I had hoped assemblyscript.org/introductβ¦
1
coo. You wrote a deflate implementation in that?
Aug 19, 2020 Β· 8:14 AM UTC
1


