• L
    remove Set.new from DetailsKey::get, impacts rendering overhead performance · 4955c04e
    Luke Gruber 提交于
    Using ruby-prof, I noticed that Set#add had the largest 'self time'
    percentage (5% of the overall time spent rendering) when
    benchmarking the rendering of a small cached ERB template that was 3
    lines long. It turns out it was from this line. I don't believe the
    Set is necessary, either. Removing this line increases the rendering
    ips using Benchmark::ips accordingly.
    4955c04e
lookup_context.rb 7.7 KB