1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/arel
John Hawthorn 80a0eca40b Speed up arel visitor dispatch
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.
2022-09-02 12:33:20 -07:00
..
attributes Remove unused Arel::Attributes classes 2021-03-11 11:50:42 +09:00
collectors Fix binds logging for HomogeneousIn 2021-02-25 20:37:20 -05:00
nodes Use nested queries when doing UPDATE in myslq and GROUP_BY and HAVING clauses are present. 2021-11-01 13:27:44 -04:00
visitors Speed up arel visitor dispatch 2022-09-02 12:33:20 -07:00
alias_predication.rb
crud.rb Use nested queries when doing DELETE and GROUP_BY and HAVINAG clauses present. 2021-11-01 21:39:20 -04:00
delete_manager.rb Use nested queries when doing DELETE and GROUP_BY and HAVINAG clauses present. 2021-11-01 21:39:20 -04:00
errors.rb
expressions.rb
factory_methods.rb
filter_predications.rb Arel: Add support for FILTER clause (SQL:2003) 2021-07-20 15:17:04 +03:00
insert_manager.rb Move where from TreeManager to SelectManager 2021-03-15 23:50:44 +09:00
math.rb
nodes.rb Arel: Add support for FILTER clause (SQL:2003) 2021-07-20 15:17:04 +03:00
order_predications.rb
predications.rb Properly handle impossible cases in (not_)between 2021-10-26 05:55:03 +00:00
select_manager.rb Replace map + compact with filter_map 2021-04-22 22:08:34 -03:00
table.rb Remove Arel::Crud from Arel::Table 2021-03-02 17:48:28 +09:00
tree_manager.rb Move where from TreeManager to SelectManager 2021-03-15 23:50:44 +09:00
update_manager.rb Use nested queries when doing UPDATE in myslq and GROUP_BY and HAVING clauses are present. 2021-11-01 13:27:44 -04:00
visitors.rb Make where_sql more few code 2020-06-17 10:50:34 +09:00
window_predications.rb