I did some benchmarks. Accessing new methods is 50% slowere vs objects. On 
the other hand, accessing existing methods is faster because acessing vals 
is faster than accessing objects. 

On Dec 2, 2008 10:24 AM, "Jorge Ortiz" <[EMAIL PROTECTED]> wrote:

If you add (non-overriden) fields to a val, they'll always be invoked via 
reflection, which takes a performance hit. Objects, on the other hand, 
define their own class so reflection isn't necessary.

I don't expect this to be an issue in 99% of situations, but it's another 
"gotcha" to be aware of.

--j

On Tue, Dec 2, 2008 at 12:07 PM, Marius <[EMAIL PROTECTED]> wrote: > > 
> Hi all, > > I just ...


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to