Re: (count (filter ...)) much slower in 1.3 Alpha 2?

2010-10-29 Thread Btsai
Awesome, thank you :) On Oct 29, 2:29 pm, Stuart Halloway wrote: > Rich has fixed this on > master:http://github.com/clojure/clojure/commit/e354b01133e7cff8dc0d0eb9e90c... > > Thanks for the report! > > Stu > > > > > > > > > I have some code that counts the elements in a list that map to true >

Re: (count (filter ...)) much slower in 1.3 Alpha 2?

2010-10-29 Thread Stuart Halloway
Rich has fixed this on master: http://github.com/clojure/clojure/commit/e354b01133e7cff8dc0d0eb9e90cde894c12e127 Thanks for the report! Stu > I have some code that counts the elements in a list that map to true > in a lookup table, looking something like this: > > (def lookup-table {1 true, 2

Re: (count (filter ...)) much slower in 1.3 Alpha 2?

2010-10-29 Thread Stuart Halloway
Confirmed. I am looking into this. For some reason the call to filter is reflective in alpha 2. > Could someone else also try the sample code I included to see if they > also experience the same ~10x slowdown for (count (filter ...)) in 1.3 > Alpha 2? > > On Oct 28, 12:34 pm, Btsai wrote: >> I

Re: (count (filter ...)) much slower in 1.3 Alpha 2?

2010-10-29 Thread Mark Hamstra
My results are actually worse. I get about a 40x slowdown, going from ~50ms in 1.2.0 to ~2000ms in 1.3.0-alpha2. On Oct 29, 12:41 pm, Btsai wrote: > Could someone else also try the sample code I included to see if they > also experience the same ~10x slowdown for (count (filter ...)) in 1.3 > A

Re: (count (filter ...)) much slower in 1.3 Alpha 2?

2010-10-29 Thread Miki
I see the same problem: Clojure 1.3.0-alpha1 user=> (load-file "/tmp/foo.clj") "Elapsed time: 402.588654 msecs" 1 Clojure 1.3.0-alpha2 user=> (load-file "/tmp/foo.clj") "Elapsed time: 4584.271921 msecs" 1 On Oct 29, 9:41 am, Btsai wrote: > Could someone else also try the sample code I included

Re: (count (filter ...)) much slower in 1.3 Alpha 2?

2010-10-29 Thread Btsai
Could someone else also try the sample code I included to see if they also experience the same ~10x slowdown for (count (filter ...)) in 1.3 Alpha 2? On Oct 28, 12:34 pm, Btsai wrote: > I have some code that counts the elements in a list that map to true > in a lookup table, looking something lik

(count (filter ...)) much slower in 1.3 Alpha 2?

2010-10-28 Thread Btsai
I have some code that counts the elements in a list that map to true in a lookup table, looking something like this: (def lookup-table {1 true, 2 false}) (def elements (range 100)) (count (filter lookup-table elements)) On my machine, with server mode enabled, the count + filter got ~10 times