Skip to content

Conversation

@Kaliumhexacyanoferrat
Copy link
Owner

No description provided.

@Kaliumhexacyanoferrat
Copy link
Owner Author

Kaliumhexacyanoferrat commented Dec 14, 2025

Things to do:

  • Add all the missing mapping logic (should satisfy the acceptance tests)
  • Synchronize preparation (compilation) process
  • Add a way to control whether code gen is used
  • Run relevant tests for both modes (ExecutionMode.Auto and .Reflection)
  • Attempt compilation once and if it fails fall back to reflection, log a message for the user to create a ticket. On the next calls, do not attempt to compile again. Disable this functionality in acceptance tests.
  • Consider deactivation of high performance optimizations (mainly for argument parsing)
  • Consider unit tests for code generation path
  • Benchmark differences
  • Consider reworking MethodCollection to be generated as well (at least optimize the class)
  • Consider changing the API to allow initialization at boot instead of first request
  • Consider adding identifiers to argument parsers and injectors to allow them to being directly used in the generated code instead of looping through them
  • Consider reworking routing from regex into segment-based, advance-capable routing (do we need a Rewind() btw. to be correct?). Could be a type with either a string or a regex segment. Also consider using stackalloc based lists to avoid the allocations there.

@Kaliumhexacyanoferrat Kaliumhexacyanoferrat marked this pull request as ready for review December 30, 2025 13:43
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat merged commit cb986dc into main Dec 30, 2025
9 of 10 checks passed
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat deleted the feature/compiled-delegates branch December 30, 2025 13:54
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.

Switch service frameworks to code generation

2 participants