1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

JavaScript parser passes all tests when returning strings.

JS is still way too slow for large mb replies.  Hiredis is fast for strings of large  replies,
but slow for buffers.
This commit is contained in:
Matt Ranney
2010-12-07 00:23:31 -08:00
parent b907364573
commit 36c40ee03d
3 changed files with 84 additions and 36 deletions

View File

@@ -14,7 +14,7 @@ var redis = require("./index"),
server_info;
// Uncomment this to see the wire protocol and other debugging info
redis.debug_mode = true;
redis.debug_mode = false;
function buffers_to_strings(arr) {
return arr.map(function (val) {
@@ -513,7 +513,7 @@ tests.UTF8 = function () {
client.set(["utf8test", utf8_sample], require_string("OK", name));
client.get(["utf8test"], function (err, obj) {
assert.strictEqual(null, err);
assert.strictEqual(utf8_sample, obj.toString('utf8'));
assert.strictEqual(utf8_sample, obj);
next(name);
});
};