RE: https://hachyderm.io/@mitchellh/117096080032017532 Okay, I attacked the libg...
Mitchell Hashimoto @mitchellh@hachyderm.io
RE: https://hachyderm.io/@mitchellh/117096080032017532
Okay, I attacked the libghostty wasm binary size. I got our full-featured binary blob down from 1.1MB to 876KB (218KB compressed). But I also added a compile time feature selector. For a read-only viewer subset, the blob is down to 537KB (132KB compressed).
The dumbest thing I found was that LLVM in `-O3` was translating `var buf: [4096]u32 = @splat(c)` to 4096 individual `i32.store` instructions which took up 30KB. lol. A for loop fixed that AND improved the performance of that [rarely used] function by 11x. cc @andrewrk
I'm going to keep hammering away at this.