Skip to content

Performance optimizations and release 5.1.0 - #22

Merged
jlsync merged 1 commit into
masterfrom
perf-optimizations-5.1.0
Nov 13, 2026
Merged

jlsync merged 1 commit into
masterfrom
perf-optimizations-5.1.0

Conversation

@jlsync

@jlsync jlsync commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Defer Rails named_routes lookups in NamedRouteHelper until helper method generation, check route availability via respond_to?, extract extract_resource_url_options, and invoke generated route helpers directly instead of send
  • Scan RequestPathIntrospection#segments_for_path_and_keys by index without array shifting and streamline param_keys, segment_for_key, resource_params, and load_wildcards_from loops
  • Avoid redundant #new_record? calls in Helper#form_for_resource_options and skip eager pluralize/foreign_key inflections in Specification when options already provide them
  • Raise ResourceMismatch cleanly when nesting segments are exhausted in load_enclosing_resource_from_specification, and forward keywords/blocks via ... in method_missing
  • Update inline/RDoc documentation, add regression specs, update CHANGELOG, and bump version to 5.1.0

Testing

  • bundle exec rspec: 701 examples, 0 failures

… and helpers

- Defer named_routes lookups in NamedRouteHelper until helper code generation and avoid unnecessary allocations/send calls
- Scan RequestPathIntrospection segments by index and streamline segment_for_key, resource_params, and load_wildcards_from
- Avoid redundant #new_record? calls in Helper#form_for_resource_options and skip eager pluralization/foreign_key work in Specification
- Raise ResourceMismatch cleanly on exhausted nesting_segments and forward blocks/keywords via method_missing
- Add regression specs, update inline/RDoc comments, and bump version to 5.1.0

Co-authored-by: Antigravity <antigravity@google.com>
@jlsync
jlsync merged commit 11dd739 into master Nov 13, 2026
6 checks passed
@jlsync
jlsync deleted the perf-optimizations-5.1.0 branch November 13, 2026 15:18
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.

1 participant