Skip to content

Refactor inlined templates#20

Merged
palkan merged 1 commit intomainfrom
refactor/inline-v2
Jan 10, 2025
Merged

Refactor inlined templates#20
palkan merged 1 commit intomainfrom
refactor/inline-v2

Conversation

@palkan
Copy link
Member

@palkan palkan commented Jan 10, 2025

What is the purpose of this pull request?

Improve inlined templates support.

What changes did you make? (overview)

Is there anything you'd like reviewers to focus on?

Updated benchmark results:

$ ruby 3.3.6 (2024-11-05 revision 75015d4c1f) +YJIT [arm64-darwin23]

Calculating -------------------------------------
              rumble    141.823k (± 7.8%) i/s    (7.05 μs/i) -      1.407M in  10.006149s
            erb_hash    254.596k (± 4.3%) i/s    (3.93 μs/i) -      2.558M in  10.068461s
    raw_erb_template    707.835k (± 3.5%) i/s    (1.41 μs/i) -      7.104M in  10.050222s

Comparison:
    raw_erb_template:   707835.2 i/s
            erb_hash:   254596.2 i/s - 2.78x  slower
              rumble:   141823.2 i/s - 4.99x  slower

Checklist

  • I've added tests for this change
  • I've added a Changelog entry
  • I've updated a documentation

@palkan palkan force-pushed the refactor/inline-v2 branch from 09df778 to 2ceab71 Compare January 10, 2025 21:58
@palkan palkan force-pushed the refactor/inline-v2 branch from 2ceab71 to c760394 Compare January 10, 2025 21:59
@palkan palkan merged commit 13c255d into main Jan 10, 2025
10 checks passed
@palkan palkan deleted the refactor/inline-v2 branch January 10, 2025 22:01
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