For a Rails app, I have a SimpleDaemon process that does some URL
fetching and sends off emails. The daemon script requires the config/
environment.rb of the Rails app. But this script really only needs to
require ActiveRecord and ActionMailer. I’m thinking of refactoring my
code so as not to include the entire Rails environment, but I have a
two questions for anyone who has experience doing something similar:
-
Can it save a lot of memory to do this?
-
If I’m using Ruby Enterprise Edition and Phusion for the Rails app,
do the memory and speed benefits extend to the daemon script?
Thanks to anyone who can help