Skip to content

Commit

Permalink
Optimization for multibulk replies.
Browse files Browse the repository at this point in the history
  • Loading branch information
nrk committed Apr 9, 2012
1 parent 87c8ae6 commit 7a0030f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/redis.lua
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,8 @@ function response.read(client)
local list = {}
if count > 0 then
local reader = response.read
local table_insert = table.insert
for i = 1, count do
table_insert(list, i, reader(client))
list[i] = reader(client)
end
end
return list
Expand Down

0 comments on commit 7a0030f

Please sign in to comment.