On Monday, 10 September 2012 12:59:22 UTC-4, rails2012 wrote:
>
> Just want to know the best practices to make sure I get off on the right
> foot. I think on a general rule, creating fewer instances of an object is
> ideal for performance right? (I am not suffering any real problems yet)
>
On Mon, Sep 10, 2012 at 11:59 AM, Derek Lin wrote:
> Just want to know the best practices to make sure I get off on the right
> foot. I think on a general rule, creating fewer instances of an object is
> ideal for performance right? (I am not suffering any real problems yet)
> In Java, there is
some
blog saying that Rails's way is using Modules. I have to look into more on
Modules -- for example, are they equivalent to global functions?
> From: pavl...@gmail.com
> Date: Mon, 10 Sep 2012 07:58:23 +0100
> Subject: Re: [Rails] Object Efficiency
> To: rubyonrails-talk
On 10 September 2012 05:03, rails2012 wrote:
> In my rufus config file, I have to call MyController.new.checkEmail. Now I
> set it to run every 5 minutes. So the system creates a new MyController
> instance every 5 minutes. That's very inefficient right?
Normally it would be worth worrying abo
So I am using rufus-scheduler to call a controller which in turn calls an
email receiver to check emails...
In my controller, I have an instance method called checkEmail
In my rufus config file, I have to call MyController.new.checkEmail. Now I
set it to run every 5 minutes. So the system cre
5 matches
Mail list logo