Re: Data Structure server (Redis in Clojure)

2012-09-27 Thread Artem Yankov
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

Re: Data Structure server (Redis in Clojure)

2012-09-19 Thread Artem Yankov
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

Data Structure server (Redis in Clojure)

2012-09-18 Thread Artem Yankov
Hi, So I really wanted to learn Clojure and get familiar with the functional programming. As a side project I decided to write a simple data structure server similar to Redis. It uses Redis protocol and already supports same data structures and main commands. So any standard redis client can be

Re: Data Structure server (Redis in Clojure)

2012-09-18 Thread Moritz Ulrich
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..