Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rails/jbuilder
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: affinity/jbuilder
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 13 commits
  • 33 files changed
  • 1 contributor

Commits on May 28, 2025

  1. Configuration menu
    Copy the full SHA
    7b554a0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a1ddb07 View commit details
    Browse the repository at this point in the history

Commits on May 29, 2025

  1. Cleanup project for Rails 7+ support (#3)

    * Update gemspec for Rails 7
    
    * Update gemspec for Ruby 3.0
    
    * Cleanup test cases for Rails 7
    
    * Cleanup Railtie for Rails 7
    
    * Cleanup test cases for Ruby 3.0
    
    * Refactor CollectionRenderer for Rails 7+ support
    
    * Cleanup one more spot in tests
    moberegger authored May 29, 2025
    Configuration menu
    Copy the full SHA
    0a67bbd View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2025

  1. Optimize internal extract! calls to save on memory allocation (#7)

    * Optimize extract to save on memory allocation
    
    * Back to fetch
    moberegger authored Jun 2, 2025
    Configuration menu
    Copy the full SHA
    87f2915 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2025

  1. Configuration menu
    Copy the full SHA
    47149bd View commit details
    Browse the repository at this point in the history
  2. Optimize memory allocation when rendering partials (#8)

    * Optimize options merging
    
    * Call set_value directly
    
    * Save memory allocation when calling render
    moberegger authored Jun 3, 2025
    Configuration menu
    Copy the full SHA
    72ee68c View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2025

  1. Optimize key formatter (#6)

    * Optimize key formatter
    
    * Reuse key cache across template renders
    
    * Save on some memory allocation during initialization
    
    * Use mutex for thread safety
    
    * Optimize jbuilder initialization
    
    * Repurpose test to validate default formatter cache is used
    
    * Invert options nil check
    
    * Cleanup initializer
    
    * Save on call to ::Kernal.block_given?
    moberegger authored Jun 4, 2025
    Configuration menu
    Copy the full SHA
    2e0349b View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2025

  1. Configuration menu
    Copy the full SHA
    dc8dfa1 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2025

  1. Optimize partial! DSL (#11)

    * Optimize partial! DSL
    
    * Switch to inline check
    
    * Move _render_partial to be inlined
    
    * Commit benchmark code
    
    * Restore _is_active_model?
    
    * Add frozen_string_literal to benchmark
    
    * Swap check in _is_active_model?
    
    * Put _render_partial method back
    
    * Update benchmark
    moberegger authored Jun 13, 2025
    Configuration menu
    Copy the full SHA
    6635630 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2025

  1. Optimize array! DSL (#14)

    * Optimize array! DSL
    
    * Better array! optimization
    
    * Default collections args to nil
    
    * Stop allocating memory for empty collections
    
    * Save memory allocations for internal array calls
    
    * Make constants private
    
    * Add support for present?
    
    * More frozen empty arrays
    
    * Add benchmark code
    moberegger authored Jun 16, 2025
    Configuration menu
    Copy the full SHA
    46f9ef3 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2025

  1. Optimize set! DSL (#15)

    * Optimize set! DSL
    
    * Optimize _set_inline_partial
    
    * Prevent unecessary block allocation
    
    * Use blank? instead of empty?
    
    * Better handling of block param
    
    * Swap if condition
    
    * More block optimizations
    
    * Add benchmarks
    moberegger authored Jun 17, 2025
    Configuration menu
    Copy the full SHA
    8b047bd View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2025

  1. Optimize set! DSL (Round 2) (#16)

    * Use block parameter
    
    * Pass block parameter
    
    * Style refactor
    moberegger authored Jun 18, 2025
    Configuration menu
    Copy the full SHA
    3b9bf0a View commit details
    Browse the repository at this point in the history
  2. Optimize array! DSL (Round 2) (#17)

    * Optimize array! DSL for blocks
    
    * Update array! benchmark
    
    * Add benchmark for array! with block
    
    * Add benchmark for array! partial
    moberegger authored Jun 18, 2025
    Configuration menu
    Copy the full SHA
    f3a24a2 View commit details
    Browse the repository at this point in the history
Loading