Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@amuta
Copy link
Owner

@amuta amuta commented Aug 21, 2025

Summary

  • Replaces nested lambda chains with generated Ruby methods for input accessors
  • Uses SHA1-based caching to avoid recompiling identical access plans
  • Maintains identical interface while improving performance characteristics

Changes

  • AccessCodegen: Compiles access plans to Ruby methods with eval
  • AccessEmit: Code generation templates for read/materialize/ravel/each_indexed modes
  • AccessBuilder: Integration point using codegen instead of lambda construction

Performance Impact

Generated methods eliminate closure allocation overhead and provide better optimization opportunities for the Ruby VM.

@amuta amuta merged commit a2c878a into main Aug 21, 2025
0 of 8 checks passed
@amuta amuta deleted the accesors-ruby-codegen branch August 28, 2025 01:57
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.

2 participants