Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[documentation] provide benchmark to demostrate statement in readme #82

Open
iapicca opened this issue Dec 11, 2021 · 1 comment
Open

Comments

@iapicca
Copy link

iapicca commented Dec 11, 2021

your readme states

Replaces the low-performing Flutter channel with faster and more concise code.

I care less about the "concise" part, but your claim that your solution is faster than the first party implementation is interesting
could you provide benchmarks that demonstrate your claim?

Additionally, how does this solution perform against pigeon?

@yulingtianxia
Copy link
Member

yulingtianxia commented Dec 14, 2021

Here is the benchmark:

However, it has to be said that the time saved by synchronous calls comes from reducing the overhead of switching threads, which also blocks the flutter-ui thread.

pigeon is a tool for flutter channel. dart_native do not need to define serialization methods such as JSON format, it calls native method directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants