Skip to content

Flutter engine group - #133

Open
srmncnk wants to merge 12 commits into
Yukams:2.0.6-dev.2from
srmncnk:flutter_engine_group
Open

Flutter engine group#133
srmncnk wants to merge 12 commits into
Yukams:2.0.6-dev.2from
srmncnk:flutter_engine_group

Conversation

@srmncnk

@srmncnk srmncnk commented Aug 26, 2024

Copy link
Copy Markdown

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

srmncnk commented Aug 26, 2024

Copy link
Copy Markdown
Author

@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