aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/mail_helper_test.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-02-06 10:36:01 -0700
committerSean Griffin <sean@thoughtbot.com>2015-02-06 10:39:12 -0700
commit9c47b874d112414df7f80f9ed852adb48ba6d268 (patch)
treeb3062d4eac0a9f273941a4cf0eb6e539013f455b /actionmailer/test/mail_helper_test.rb
parentde9313ce7c310adc75f4bb22e2fab125b538e620 (diff)
downloadrails-9c47b874d112414df7f80f9ed852adb48ba6d268.tar.gz
rails-9c47b874d112414df7f80f9ed852adb48ba6d268.tar.bz2
rails-9c47b874d112414df7f80f9ed852adb48ba6d268.zip
Improve the performance of HWIDA `select` and `reject`
These are (potentially, depending on input) called in several places in both the router, and Active Record. The code also becomes much cleaner. This results in ~33% performance gain in both methods. Calculating ------------------------------------- before 15.696k i/100ms after 19.865k i/100ms ------------------------------------------------- before 303.064k (± 2.6%) i/s - 1.523M after 446.734k (± 2.4%) i/s - 2.245M On Ruby 2.2, a warning will be emitted about states not being copied, because we're calling `super` from a subclass. We can safely ignore it, however, since we're converting the result back into a HWIDA
Diffstat (limited to 'actionmailer/test/mail_helper_test.rb')
0 files changed, 0 insertions, 0 deletions