hinto-janai/festival

#1 CCD bottleneck: `bytes_to_dyn_image()`

hinto-janai opened this issue · 1 comments

What

By far, the specific function that takes the largest amount of time in the CCD process is: bytes_to_dyn_image(), for converting the raw, full-sized image bytes into a DynamicImage object.

The resize operations afterwards are almost instant in comparison.

Out of a 2.5~ second Collection reset (user time), it accounts for around 2 seconds.

Todo

Figure out how to make this thing faster.

In terms of Collection reset speed increases (for user time), this is the biggest target.

This is still the largest bottleneck, but #20 makes it quite faster. The only option to make it go faster is to re-write a faster JPG encoder (impossible...?).

For performance, the next biggest thing to worry about practically speaking is #2 and #15.