On the most recent git revision of Clojure (branch master, commit
64323d8c6ad4962ac780d4d904b69a891ab312f8),

user=> (count {1 nil 2 nil 3 nil 4 nil 5 nil 6 nil 7 nil 8 nil})
8
user=> (count {1 nil 2 nil 3 nil 4 nil 5 nil 6 nil 7 nil 8 nil 9 nil})
0
user=> (count {1 nil 2 nil 3 nil 4 nil 5 nil 6 nil 7 nil 8 nil 9
true})
1


The bug seems to have appeared way back here:

commit eedcf35479737ab1136e3b8a00b2759190a73fdb
Author: Christophe Grand <christo...@cgrand.net>
Date:   Mon Aug 10 20:08:07 2009 +0200
    Replaced PersistentHashMap by PersistentHashMap2
    Signed-off-by: Rich Hickey <richhic...@gmail.com>

This works as expected in the previous commit:

commit 7b5d49396c5925f9fc9bd587760df6d9f19da5e1
Author: Christophe Grand <christo...@cgrand.net>
Date:   Mon Aug 10 20:04:20 2009 +0200
    shrink when children count <= 8
    Signed-off-by: Rich Hickey <richhic...@gmail.com>

Can anyone else confirm?

Thanks,
Jason



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