allow to share assets without serializing them within a transformer group #20858
Labels
area-pkg
Used for miscellaneous pkg/ packages not associated with specific area- teams.
P3
A lower priority bug or feature request
type-enhancement
A request for a change that isn't a bug
I'm not sure if this is worth the complexity, but here are some ideas:
- only serialize assets if they are requested on a separate isolate
- allow transformers to expose custom serialization/deserialization types so they can be encoded concisely in the communication with the main isolate (like FileAssets are), and decoded quickly if the asset ends up arriving back to the same isolate where they were encoded.
The main motivation I have for this is that in polymer we parse and serialize html files many times. I wouldn't be surprised if something similar is needed to process .dart files in multiple phases with the Dart analyzer. It would be great if we could parse files once, and pass the HtmlDocument to the next phase.
The text was updated successfully, but these errors were encountered: