use transients in merge and merge-with?

2 views
Skip to first unread message

Chouser

unread,
Nov 11, 2009, 8:39:06 AM11/11/09
to cloju...@googlegroups.com
'into' uses transients internally. A brief look at 'merge' and
'merge-with' suggests they could as well. Would this be desirable?

--Chouser

Andy Kish

unread,
Nov 12, 2009, 2:32:38 AM11/12/09
to cloju...@googlegroups.com
Would transients be faster or improve code reuse? No need to change working code otherwise.


--

You received this message because you are subscribed to the Google Groups "Clojure Dev" group.
To post to this group, send email to cloju...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/clojure-dev?hl=.



Sean Devlin

unread,
Nov 12, 2009, 8:31:08 AM11/12/09
to Clojure Dev
(if (tests-pass) inc)

Chouser

unread,
Nov 12, 2009, 9:00:11 AM11/12/09
to cloju...@googlegroups.com
> On Wed, Nov 11, 2009 at 8:39 AM, Chouser <cho...@gmail.com> wrote:
>>
>> 'into' uses transients internally.  A brief look at 'merge' and
>> 'merge-with' suggests they could as well.  Would this be desirable?

On Thu, Nov 12, 2009 at 2:32 AM, Andy Kish <agk...@gmail.com> wrote:
> Would transients be faster or improve code reuse? No need to change working
> code otherwise.

It's likely use of transients would improve performance when
merging a large number of maps or merging large maps.

--Chouser
Reply all
Reply to author
Forward
0 new messages