By the way, i figured performance issue (there was a prn call for each command which significantly slowed everything down, heh). Now, numbers are close to Redis, except for lrange for big lists and I havent' tested zsets yet. Need to gain more experience in jvm tweaking and data structure optimization i guess..
On Wednesday, September 19, 2012 10:01:09 AM UTC-7, Artem Yankov wrote: > > Those are a bit different. Naming of data structures in Redis can be a bit > confusing. What's called > a sorted set actually is more like a sorted map - keys mapped to scores > and set is sorted by scores. > > On Tuesday, September 18, 2012 5:51:25 AM UTC-7, Moritz Ulrich wrote: >> >> >> Hi! >> >> I don't have the time to look at your code right now, but I have one >> suggestion: >> >> Artem Yankov writes: >> >> > 2. What would be a best way to implement sorted sets (like in Redis)? I >> > used sorted maps and sorting them by values which I highly doubt is a >> > log(n) operation.. >> >> `clojure.core/sorted-set' and `clojure.core/sorted-set-by' >> >> http://clojuredocs.org/clojure_core/clojure.core/sorted-set >> >> -- >> Moritz Ulrich >> > -- 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