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/active_record/tasks
Dillon Welch d108288c2f
Turn on performance based cops
Use attr_reader/attr_writer instead of methods

method is 12% slower

Use flat_map over map.flatten(1)

flatten is 66% slower

Use hash[]= instead of hash.merge! with single arguments

merge! is 166% slower

See https://github.com/rails/rails/pull/32337 for more conversation
2018-07-23 15:37:06 -07:00
..
database_tasks.rb Don't create namespaced tasks if single db application 2018-04-09 13:08:12 -04:00
mysql_database_tasks.rb Turn on performance based cops 2018-07-23 15:37:06 -07:00
postgresql_database_tasks.rb Turn on performance based cops 2018-07-23 15:37:06 -07:00
sqlite_database_tasks.rb Turn on performance based cops 2018-07-23 15:37:06 -07:00