Re: heaps in clojure vs SML

2015-02-01 Thread Mars0i
Criterium automates the JVM warmup process. On Sunday, February 1, 2015 at 1:16:37 PM UTC-6, Ashton Kemerling wrote: > > Also remember to give the JVM some warm up time, as the JVM depends > heavily on JIT style optimizations, and measuring performance without it > might not represent real world

Re: heaps in clojure vs SML

2015-02-01 Thread Maris Orbidans
I published my heap implementation on github: https://github.com/maruks/clj-data It has reasonable performance. I used it for https://www.hackerrank.com/challenges/messy-medians [org.clojars.maruks/maruks.data "0.0.1"] On Sun, Feb 1, 2015 at 7:16 PM, Ashton Kemerling wrote: > Also rem

Re: heaps in clojure vs SML

2015-02-01 Thread Ashton Kemerling
Also remember to give the JVM some warm up time, as the JVM depends heavily on JIT style optimizations, and measuring performance without it might not represent real world behavior, -- Ashton On Saturday, January 31, 2015 at 11:39:05 PM UTC-7, Mars0i wrote: > > You also might want to use Criter

Re: heaps in clojure vs SML

2015-01-31 Thread Mars0i
You also might want to use Criterium rather than *time *for accurate benchmarking*.* On Friday, January 30, 2015 at 6:54:52 AM UTC-6, Maris wrote: > > > yes, it helped :-) > > type hints make non-trivial difference > > thank you > > On Friday, 30

Re: heaps in clojure vs SML

2015-01-30 Thread Maris
yes, it helped :-) type hints make non-trivial difference thank you On Friday, 30 January 2015 12:43:40 UTC, Nicola Mometto wrote: > > > If you set! *warn-on-reflection* to true, you'd see a lot of reflection > warnings from your code. > > Type-hinting the code like this: http://sprun

Re: heaps in clojure vs SML

2015-01-30 Thread Nicola Mometto
If you set! *warn-on-reflection* to true, you'd see a lot of reflection warnings from your code. Type-hinting the code like this: http://sprunge.us/ATiV makes your example execute in 120ms on my machine. Maris writes: > I implemented leftist heap (from Purely Functional Data Structures book) >