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

Flutter engine group #133

Open
wants to merge 5 commits into
base: 2.0.6-dev.2
Choose a base branch
from

Conversation

srmncnk
Copy link

@srmncnk srmncnk commented Aug 26, 2024

This PR fixes pushing complex objects as-is to isolates via ports:
flutter/flutter#152484 (comment)

While it's true that you can send only simple objects (int, double, String ... and ports themselves) through ports, it's also true that for isolates that were created from the main isolate, you can send complex immutable objects via automatic deep copy as well, which resolves the need for serialization (and deserialization) and also makes transfer a lot faster.

Because isolate in background locator is started from a foreground service, you can't do complex objects transfer unless you initialize FlutterEngine within the same FlutterEngineGroup. This PR does exactly that.

@srmncnk
Copy link
Author

srmncnk commented Aug 26, 2024

@Yukams This should be 2.0.6-dev.3 and later on merged into master. I'm happy to take over merging and looking into other pending PRs / publishing if you're busy, just take a look at it first please.

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

Successfully merging this pull request may close these issues.

1 participant