discourse/app/mailers
Guo Xiang Tan 982e3d04f6 PERF: Allow memory to be freed instead of fetching all the objects into memory at once.
```
MemoryProfiler.report do
  Jobs::UserEmail.new.execute(type: :mailing_list, user_id: user.id)
end.pretty_print
```

Before:
```
Total allocated: 180096119 bytes (1962025 objects)
Total retained:  2194 bytes (16 objects)

allocated memory by gem
-----------------------------------
  66979096  activerecord-4.2.8
  43507184  nokogiri-1.7.1
  43365188  mail-2.6.4
   5960201  activesupport-4.2.8
   5056267  discourse/lib
   4835284  rack-mini-profiler-0.10.1
   3825817  arel-6.0.4
   2186088  i18n-0.8.1
   1719330  discourse/app
```

After:
```
Total allocated: 161935975 bytes (1473940 objects)
Total retained:  2234 bytes (17 objects)

allocated memory by gem
-----------------------------------
  45430264  activerecord-4.2.8
  43568627  nokogiri-1.7.1
  43430754  mail-2.6.4
  11233878  rack-mini-profiler-0.10.1
   5260825  activesupport-4.2.8
   5054491  discourse/lib
   2186088  i18n-0.8.1
   1822494  arel-6.0.4
```
2017-05-03 17:01:57 +08:00
..
admin_confirmation_mailer.rb SECURITY: Confirm new administrator accounts via email 2017-04-04 15:59:01 -04:00
download_backup_mailer.rb FEATURE: further restrict downloading of backups 2017-03-01 08:28:34 -07:00
invite_mailer.rb FIX: Messed up i18n key 2017-04-27 11:45:59 -04:00
pending_flags_mailer.rb FEATURE: improve flags reminder email 2014-09-23 18:37:31 +02:00
pending_queued_posts_mailer.rb FEATURE: notify by email when there are posts from new users waiting to be reviewed 2015-06-18 15:47:35 -04:00
rejection_mailer.rb FEATURE: better email in support 2016-01-19 00:57:55 +01:00
subscription_mailer.rb FEATURE: simpler and friendlier unsubscribe workflow 2016-06-17 11:28:49 +10:00
test_mailer.rb Work in Progress: Reply By Email: 2013-06-13 12:39:56 -04:00
user_notifications.rb PERF: Allow memory to be freed instead of fetching all the objects into memory at once. 2017-05-03 17:01:57 +08:00
version_mailer.rb Get detailed info about new versions from the Discourse Hub. Include version notes from the latest version in notification email. 2013-12-31 15:52:35 -05:00