2009/11/21 John Harrop <jharrop...@gmail.com>:
> On Fri, Nov 20, 2009 at 5:16 PM, Raoul Duke <rao...@gmail.com> wrote:
>>
>> > Try with a 1.6 JVM...
>>
>> wow. it actually got worse than when i was using 1.5. ... so much for
>> hallowed write-once-run-the-same-anywhere-ish of the jvm, d'oh.
>>
>> Clojure 1.1.0-alpha-SNAPSHOT
>> user=> (load-file "/tmp/test.clj")
>> #'user/vrange2
>> user=> (. System getProperty "java.version")
>> "1.6.0_15"
>> user=> (time (def v2 (vrange2 1000000)))
>> "Elapsed time: 329.906 msecs"
>> #'user/v2
>> user=> (time (def v2 (vrange2 1000000)))
>> "Elapsed time: 888.734 msecs"
>> #'user/v2
>> user=> (time (def v2 (vrange2 1000000)))
>> "Elapsed time: 546.982 msecs"
>> #'user/v2
>> user=> (time (def v2 (vrange2 1000000)))
>> "Elapsed time: 517.969 msecs"
>> #'user/v2
>> user=> (time (def v (vrange 1000000)))
>> "Elapsed time: 1649.449 msecs"
>> #'user/v
>> user=> (time (def v (vrange 1000000)))
>> --- never came back, i had to ^C^C (in emacs buffer)!!
>
> You've got some kind of system problem confounding your results, I'll bet.
> It got slower? One test actually hung?
> My suspicion, of course, lies with the emacs environment you've just
> confessed to using. Half the traffic on this list at times is from people
> having problems with configuring either emacs or vi to work well with
> Clojure.
> Try it in a modern IDE, or from the command line, and see if the problem
> goes away. If it does, then you know the likely culprit and it isn't
> Clojure's transients. :)

To be fair, John, you've had an issue or two with the REPL provided by
your modern IDE too :)

Raoul, are you using the server VM?  Not sure how much of a difference
it makes, and I haven't benchmarked this myself.

-- 
Michael Wood <esiot...@gmail.com>

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