If efficiency is really an issue (if it's not just use apply), how about using a macro for doing the dirty work of writing the direct function application for you?
On 20 maio, 19:44, CuppoJava <patrickli_2...@hotmail.com> wrote: > Thanks a lot for that really detailed analysis Stephen. > I do find "apply" very convenient in a lot of cases, and am using it > to save a line or two of code whenever I can. But after seeing this > benchmark, I think I shall be more disciplined about my use of it. > Especially in the case where the number of arguments of known, I can > it's better to use the direction function application, even if it > requires a little more typing. > > That seems to be a very useful tool. I'm gonna keep YourKit in mind in > the future. > > Thanks again > -Patrick --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---