First with I am a buyer blog, the original connection: http://blog.woshimaijia.com/redis2-2%E6%96%B0%E7%89%88%E5%8A%9F%E8%83%BD%E4%BB%8B%E7%BB%8D/
I have been paying attention to redis. I used redis2.0.4 for a while and found that the official version of redis 2.2 is quite good. If there are any errors, please point out, ^ _ ^
Redis2.2 New Features
Major updates:
Memory efficiency memory efficiency (Major optimization)
-AlgorithmComplexity O (1) Improvement
-The pointer overhead of each element is close to a constant.
-Ziplist list Compression
-- Slightly CPU usage to reduce memory usage
-- Compress a single list of memory blocks
-- The value header is encoded with the value length.
-- More suitable for small traffic and small size
-- Redis uses the Hybrid Method
-- Hash table consumption
-- Calculate only the integer of 8 bytes
-- Note: the complexity of searching f in many pointer filling structures is O (1)
-Integer Set the intset
-- The idea is the same as ziplist, but it is ordered.
-- A value of an indefinite length can be searched in binary format.
-- Sadd/Srem complexity O (logn + memory size)
-- Sismember complexity O (logn)
-- What are the advantages of using intset instead of hash table when it is an integer range?
-- 10-15x Improvement
-- Impact on throughput (see figure)
-- Suitable for 20-50 K
-- Use the hybrid method like ziplists
-- Reduce general key space overhead (Vm enabled)
-- Sorting of datasets close to 20% increases
Increase Throughput throughput improvements (optimization of request/response)
Throughput
Reply response
-Merge response into large blocks.
-Each connection uses a fixed 7500-byte cache.
-More response responses
-Optimized request processingCode
-Batch request processing is simpler and faster
Expired improved expire semantics (modified the expiration Policy)
-Processing of expired keys (keys with expire configured)
<= 2.0: delete when writing
> = 2.2 not processed
Redis 2.2 version of whats_new_in, very look forward to the release of the new version of 2.2, with a period of time redis feel very good, continue to follow up, I am a buyer Project (http://woshimaijia.com) database will be transferred from MySQL to redis for a bold attempt
Connection: http://www.redis.io/presentation/Pnoordhuis_whats_new_in_2_2.pdf