Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creates an empty lua table with specified initial capacity as much as…
… possible Currently, we create a Lua table without initial capacity even when the capacity is known. As a result, we need to resize the Lua tables repeatedly and it consumes extra cpu resources when we need to transfer RESP-serialized data to Lua world. This patch try to remove this extra resize to reduce (re-)allocation overhead.
- Loading branch information