[WIP] Experiment: AOT compilation flags#7903
Draft
Aaronontheweb wants to merge 34 commits intoakkadotnet:devfrom
Draft
[WIP] Experiment: AOT compilation flags#7903Aaronontheweb wants to merge 34 commits intoakkadotnet:devfrom
Aaronontheweb wants to merge 34 commits intoakkadotnet:devfrom
Conversation
I have a feeling that CreateProducer might still be needed but testing this out for now.
Moved some methods around to group better
…im warning with IIndirectorActorProducer
…AOT-compilation-flags
- Added DefaultRouterFactories to TypeHints with factory functions for all built-in routers - Modified Deployer.CreateRouterConfig to use factory functions in AOT mode - Avoids Type.GetType() and Activator.CreateInstance for router instantiation - Supports all 14 built-in routers (round-robin, random, smallest-mailbox, etc.) - Cluster metrics routers excluded (require Akka.Cluster.Metrics assembly) Fixes IL2057 warning in Deployer.cs:156 Related: akkadotnet#7246
- Modified GetSerializerIdentifierFromConfig to use string-based matching in AOT mode - Uses TypeQualifiedName() extension to get short assembly-qualified name - Avoids Type.GetType() call by comparing strings directly - Format: "TypeFullName, AssemblyShortName" (e.g., "Akka.Serialization.ByteArraySerializer, Akka") Fixes IL2057 warning in Serializer.cs:200 Related: akkadotnet#7246
- Added [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.Interfaces)] to: - HasRequiredType(Type actorType) - ProducesMessageQueue(Type mailboxType) - GetRequiredType(Type actorType) - Suppressed IL2075 in GetProducedMessageQueueType since all MailboxType implementations have preserved interfaces Fixes IL2070 warnings in Mailboxes.cs:99, 119, 248 Fixes IL2075 warning in Mailboxes.cs:264 Related: akkadotnet#7246
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Experimental approach to attaining AOT compat via essentially a second library.
Checklist
For significant changes, please ensure that the following have been completed (delete if not relevant):
Latest
devBenchmarksInclude data from the relevant benchmark prior to this change here.
This PR's Benchmarks
Include data from after this change here.