• S
    PERF: avoid allocating column names where possible · a46dcb74
    Sam 提交于
    When requesting columns names from database adapters AR:Result
    would dup/freeze column names, this prefers using fstrings which
    cuts down on repeat allocations
    
    Attributes that are retained keep these fstrings around for the long
    term
    
    Note, this has the highest impact on "short" result sets, eg: Topic.first where you can void allocating the number of columns * String.
    a46dcb74
attribute_methods.rb 16.9 KB