|
|
|
|
|
by cereallarceny
649 days ago
|
|
I'm in the early days of measuring performance, and it should improve dramatically with using a lower-level port, like in Rust. To me, that library is the long-term key to adoption as it allows the library to be embedded within native camera applications. For the current Typescript version, I'm getting the following on Node 20 with my M1 Max MBP (64g RAM): - Writer: 100 characters - 6 ops/sec, 1k characters - 1 op/sec
- Reader: 100 characters - 10 ops/sec, 1k characters - 3 ops/sec Again, those are preliminary and entire Node-based figures on a fairly-recent MBP. I'd expect significant performance improvements with both a Rust port as well as running the existing Typescript library through the Bun runtime. |
|
- Writer: 100 characters - 20 ops/sec, 1k characters - 11 op/sec - Reader: 100 characters - 15 ops/sec, 1k characters - 6 ops/sec
That's a 233%-1,100% increase in write speed, and a 50%-100% increase in read speed.
I'm also adding support for export to both canvas and GIF, as well as an estimated package bundle decrease of more than 300%.