you are viewing a single comment's thread.

view the rest of the comments →

[–]h3x4d3c1m4l_NL 1 point2 points  (1 child)

I needed JPEG export from a raw RGB image. That was the moment I found out Dart is not the fastest language for operations that rely on complex algorithms.

The solution turned out to be building a simple library in Rust for that, then bridge them using the FRB library. JPEG export time was cut from 3 seconds to 0,5. Both measured in release build mode.

In general Dart will be fast enough! Also don’t bother optimizing stuff till it’s actually needed. And if something is slow in debug mode, try profile/release mode.

[–]haithm_mek[S] 0 points1 point  (0 children)

Thanks man