The process for looking up snippets is not a single reflection operation,
but a series of reflection operations.  Some of the operations are cached in
production mode.

However, as a matter of strongly typed style, I like DispatchSnippets
because you know what you are getting.

On Mon, Jul 20, 2009 at 9:21 AM, Timothy Perrett <timo...@getintheloop.eu>wrote:

>
>
> Hey Marius,
>
> Thanks for the critical feedback :-)
>
> I have no benchmarks to speak of, just pouring out my general understanding
> onto my blog - I do remember DPP saying some time ago that DispatchSnippets
> were really the way to go for most things of any serious implementation.
>
> Cheers, Tim
>
> On 20/07/2009 17:12, "marius d." <marius.dan...@gmail.com> wrote:
>
> >
> > Good article but do you have some concrete benchmarks between Snippet
> > and DispatchSnippet? In modern JVM memory allocation is pretty cheap
> > due to heap preparation JVM makes and reflection invocation doesn't
> > bring too much overhead ... not anymore.
> >
> > The article seams to present the two from an optimization perspective
> > but I don;t see much optimization here. Of course DispatchSnippet
> > invocation is faster but the question is how much. And for say
> > thousands of concurrent requests per cluster node I have the feeling
> > that the delta is not that significant. Furthermore these deltas
> > become totally negligible when during a request life cycle we're
> > hitting DB-s. remote services etc.
> >
> > Personally I don't really agree regular snippets should be used in Dev
> > mode only, well not until I see some compelling numbers.
> >
>
>
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

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

Reply via email to