You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running apps with many proto classes one can run into a performance cliff due to doing runtime function type checks in the Dart VM (which are currently implemented via a cache that has maximum size).
The "offending" code in the protobuf library is in generated_message:
When inserting createFn into the Map<Function?, Function> we loose track of its function type T Function()?. That means when getting it out of the map we have to do a runtime function type check which is very expensive.
The text was updated successfully, but these errors were encountered:
We could land a change that replaces this runtime function type test with a simpler runtime interface type check that is more efficiently implemented in the Dart VM.
When running apps with many proto classes one can run into a performance cliff due to doing runtime function type checks in the Dart VM (which are currently implemented via a cache that has maximum size).
The "offending" code in the protobuf library is in generated_message:
When inserting
createFn
into theMap<Function?, Function>
we loose track of its function typeT Function()?
. That means when getting it out of the map we have to do a runtime function type check which is very expensive.The text was updated successfully, but these errors were encountered: