-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Serializers are being generated for unneeded types #3771
Comments
Indeed, I see |
I just checked that at 43efc4b this wasn't the case. So it's a relatively recent regression. I think we can still release beta2 with this as it doesn't seem to break anything. |
The regression got introduced as part of #3669. |
My bad, I widened the search to consider all types in the target assemblies as though they were marked |
Why not only generate serializers for the types used by Orleans grain interface contracts? |
@onionhammer Since Orleans is very accommodating when it comes to data types being passed (interfaces, |
It seems like those indeterminate type serializers could be generated at runtime and cached |
In theory, yes. In practice, we ran into a number of corner cases and subtle issues (e.g. with loading of dependency types and their order) with run time generation of serializers. Because of that, in 2.0 we are making run time codegen optional and more explicit - it runs only for specified assemblies and only during silo/client build time. That seems to produce more predictable and repeatable results. |
Such as
OutboundMessageQueue
,OrleansTaskScheduler
, etc:It results in 20k+ LOC generated files, slowing the build and IDE.
(using latest
master
branch (0aa92f3))The text was updated successfully, but these errors were encountered: