1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

Intermediate fix js parser handling big values very slow

Closes #900
This commit is contained in:
Ruben Bridgewater
2015-11-08 23:05:15 +01:00
parent c08461f781
commit ff857f97ae
4 changed files with 44 additions and 30 deletions

View File

@@ -733,7 +733,7 @@ RedisClient.prototype.send_command = function (command, args, callback) {
buffer_args = true;
} else if (typeof args[i] !== 'string') {
args[i] = String(args[i]);
// 30000 seemed to be a good value to switch to buffers after testing this with and checking the pros and cons
// 30000 seemed to be a good value to switch to buffers after testing and checking the pros and cons
} else if (args[i].length > 30000) {
big_data = true;
args[i] = new Buffer(args[i]);