On Thu, Oct 18, 2012 at 7:15 PM, Herwig Hochleitner <hhochleit...@gmail.com>wrote:
> 2012/10/19 Bruno França dos Reis <bfr...@gmail.com> > >> The reason why I wrote a macro instead of a function is because 'get' and >> 'duplicate' are not declared in any common superclass of the different >> buffers, so I was getting lots of reflection! >> >> Are there alternatives to the macro that avoid reflection? >> > You could use a protocol for that, though it might not be quite as fast > as the directly type hinted version, but certainly faster than reflection. > > kind regards > Or write a macro that can take a type and create a type specialized version of buffer-reduce - long-buffer-reduce, byte-buffer-reduce etc. David -- 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 Note that posts from new members are moderated - please be patient with your first post. 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