You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
Contributed changes:
* Support SlowBuffers (Umair Siddique) * Add Multi to exports (Louis-Philippe Perron) * Fix for drain event calculation (Vladimir Dronnikov) Thanks!
This commit is contained in:
10
changelog.md
10
changelog.md
@@ -1,6 +1,16 @@
|
|||||||
Changelog
|
Changelog
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
## v0.6.5 - July 6, 2011
|
||||||
|
|
||||||
|
Contributed changes:
|
||||||
|
|
||||||
|
* Support SlowBuffers (Umair Siddique)
|
||||||
|
* Add Multi to exports (Louis-Philippe Perron)
|
||||||
|
* Fix for drain event calculation (Vladimir Dronnikov)
|
||||||
|
|
||||||
|
Thanks!
|
||||||
|
|
||||||
## v0.6.4 - June 30, 2011
|
## v0.6.4 - June 30, 2011
|
||||||
|
|
||||||
Fix bug with optional callbacks for hmset.
|
Fix bug with optional callbacks for hmset.
|
||||||
|
@@ -3,7 +3,7 @@ var redis = require("../index"),
|
|||||||
command_queue_high_water: 5,
|
command_queue_high_water: 5,
|
||||||
command_queue_low_water: 1
|
command_queue_low_water: 1
|
||||||
}),
|
}),
|
||||||
remaining_ops = 10000, paused = false;
|
remaining_ops = 100000, paused = false;
|
||||||
|
|
||||||
function op() {
|
function op() {
|
||||||
if (remaining_ops <= 0) {
|
if (remaining_ops <= 0) {
|
||||||
|
2
index.js
2
index.js
@@ -285,7 +285,7 @@ RedisClient.prototype.send_offline_queue = function () {
|
|||||||
}
|
}
|
||||||
this.offline_queue = new Queue();
|
this.offline_queue = new Queue();
|
||||||
// Even though items were shifted off, Queue backing store still uses memory until next add, so just get a new Queue
|
// Even though items were shifted off, Queue backing store still uses memory until next add, so just get a new Queue
|
||||||
|
|
||||||
if (!buffered_writes) {
|
if (!buffered_writes) {
|
||||||
this.should_buffer = false;
|
this.should_buffer = false;
|
||||||
this.emit("drain");
|
this.emit("drain");
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{ "name" : "redis",
|
{ "name" : "redis",
|
||||||
"version" : "0.6.4",
|
"version" : "0.6.5",
|
||||||
"description" : "Redis client library",
|
"description" : "Redis client library",
|
||||||
"author": "Matt Ranney <mjr@ranney.com>",
|
"author": "Matt Ranney <mjr@ranney.com>",
|
||||||
"contributors": [
|
"contributors": [
|
||||||
|
@@ -5,6 +5,37 @@ for (i = 99 ; i >= 0 ; i--) {
|
|||||||
source[i] = 120;
|
source[i] = 120;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var str = "This is a nice String.",
|
||||||
|
buf = new Buffer("This is a lovely Buffer.");
|
||||||
|
|
||||||
|
var start = new Date();
|
||||||
|
for (i = count * 100; i > 0 ; i--) {
|
||||||
|
if (Buffer.isBuffer(str)) {}
|
||||||
|
}
|
||||||
|
var end = new Date();
|
||||||
|
console.log("Buffer.isBuffer(str) " + (end - start) + " ms");
|
||||||
|
|
||||||
|
var start = new Date();
|
||||||
|
for (i = count * 100; i > 0 ; i--) {
|
||||||
|
if (Buffer.isBuffer(buf)) {}
|
||||||
|
}
|
||||||
|
var end = new Date();
|
||||||
|
console.log("Buffer.isBuffer(buf) " + (end - start) + " ms");
|
||||||
|
|
||||||
|
var start = new Date();
|
||||||
|
for (i = count * 100; i > 0 ; i--) {
|
||||||
|
if (str instanceof Buffer) {}
|
||||||
|
}
|
||||||
|
var end = new Date();
|
||||||
|
console.log("str instanceof Buffer " + (end - start) + " ms");
|
||||||
|
|
||||||
|
var start = new Date();
|
||||||
|
for (i = count * 100; i > 0 ; i--) {
|
||||||
|
if (buf instanceof Buffer) {}
|
||||||
|
}
|
||||||
|
var end = new Date();
|
||||||
|
console.log("buf instanceof Buffer " + (end - start) + " ms");
|
||||||
|
|
||||||
for (i = bytes ; i > 0 ; i --) {
|
for (i = bytes ; i > 0 ; i --) {
|
||||||
var start = new Date();
|
var start = new Date();
|
||||||
for (j = count ; j > 0; j--) {
|
for (j = count ; j > 0; j--) {
|
||||||
|
Reference in New Issue
Block a user