Conversation
|
A more involved example with the line base serializer (still not using serialize addon, thus no FG/BG attributes): exec in console after running command in terminal (grr4 == output of ia=term._addonManager._addons[5].instance;
res = ia.serialize(0,8);
term.write('\r\n\r\n\r\nfrom serialize:\r\n'+res.join('\r\n')) |
|
While the line based serialization works as expected, it is still pretty wasteful, as it creates a full line image, if there is at least one cell tile. This has bad impact on the fifo buffer when reading back. Furthermore it duplicates most of A better way to deal with things here might be to create a method |
|
Added the QOI image format temporarily to IIP sequence, as it promises huge performance gains for a lossless serialization format, while only being slightly worse in compression rate compared to PNG. In my early tests decoding is 2-3x faster than PNG. Have yet to test the encoding path, but QOI itself states to be 30-50x faster during encoding than PNG. |
|
My earlier wasm serializer compared to serialize addon: (Tested with The important entry is The wasm text buffer serializer still needs cleanup and a few more config options, before we can look into a proper way to integrate image serialization as well. |






Only playground branch atm...
Can be tested with:
yarn startin xterm.js base folder to run demoia=term._addonManager._addons[5].instanceres = ia.serialize(0,6)term.write('\r\n'+res.join('\r\n'))Result should look like this:
