On Aug 3, 1:52 pm, luke <luke.vanderh...@gmail.com> wrote:
> So you could easily wrap an entirely functional code block
> in a transform-to-transient macro that translates the functions to
> their transient counterparts, and gain all the performance benefits?

I do not think it would be that easy. Transient mode cannot be used
with lists and sequences, only with some particular data structures,
like vectors. Your macro would need to know at compile time types of
variables.

I think this is the case when dynamic nature of clojure prevents us
from teaching a compiler to do sophisticated performance optimizations
and forces a programmer to do them manually instead.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to