• A
    drop array allocations on `html_safe` · 783858c8
    Aaron Patterson 提交于
    For better or worse, anonymous `*` args will allocate arrays.  Ideally,
    the interpreter would optimize away this allocation.  However, given the
    number of times we call `html_safe` it seems worth the shedding idealism
    and going for performance.  This line was the top allocation spot for a
    scaffold (and presumably worse on real applications).
    783858c8
output_safety.rb 8.5 KB