Hi, I've did something similar for CLJS, see http://dev.clojure.org/jira/browse/CLJS-453 and https://groups.google.com/forum/#!searchin/clojure/arrayvector/clojure/yDvTRP0gYLA/Tb5MJC8Z0K8J
In CLJS, it is comparable in performance to use array instead of specialized type for each arity. Did you check if it is not the same in Clojure? If I conjoin to the tuple, does it return a tuple too? Also instead of tupleN, you could fall back to the PersistentVector. JW On Sun, Aug 25, 2013 at 4:38 AM, Zach Tellman <[email protected]> wrote: > I just pulled some code I wrote while trying to optimize 'memoize' into > its own library: https://github.com/ztellman/clj-tuple. It only has the > one function, so I assume no one will need too much explanation. However, > there may still be room for performance improvements, so if anyone wants to > take a stab, pull requests are welcome. > > Zach > > -- > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
