mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
80a0eca40b
This commit makes two performance tweaks to the dispatch_cache in Arel::Visitors::Visitor. First, it interns the method name into a symbol rather than a string. send expects a symbol, so this avoids Ruby needing to intern that string itself. Second, it changes the dispatch cache to an identity hash. Classes are already compared by identity, but Ruby is able to perform the lookup more quickly if it is explicit on the hash. |
||
---|---|---|
.. | ||
attributes | ||
collectors | ||
nodes | ||
visitors | ||
alias_predication.rb | ||
crud.rb | ||
delete_manager.rb | ||
errors.rb | ||
expressions.rb | ||
factory_methods.rb | ||
filter_predications.rb | ||
insert_manager.rb | ||
math.rb | ||
nodes.rb | ||
order_predications.rb | ||
predications.rb | ||
select_manager.rb | ||
table.rb | ||
tree_manager.rb | ||
update_manager.rb | ||
visitors.rb | ||
window_predications.rb |