Open GanZhiXiong opened 4 years ago
Looking forward to your reply, thanks for your code, thanks for your reply!😀
You're welcome :)
I'm gonna be honest and I don't really know how the code is compiled in Flutter, but usually C code is faster because it is compiled to machine code which isn't the case with other languages and I believe that it is the case with Flutter. Also, notice that on my function I don't encode the image to png like on yours, so that also helps it being faster.
But once again, I'm not sure about that compiling aspect, so if anyone sees that it wrong feel free to share :)
I looked at the code for your converter. C file,It is almost the same as the code I found from this issue(https://github.com/flutter/flutter/issues/26348#issuecomment-462321428), why is the code of c fast Your code:
my code