• S
    Reduce the amount of work performed when instantiating AR models · 0f29c216
    Sean Griffin 提交于
    We don't know which attributes will or won't be used, and we don't want
    to create massive bottlenecks at instantiation. Rather than doing *any*
    iteration over types and values, we can lazily instantiate the object.
    
    The lazy attribute hash should not fully implement hash, or subclass
    hash at any point in the future. It is not meant to be a replacement,
    but instead implement its own interface which happens to overlap.
    0f29c216
core.rb 19.0 KB