[tarantool-patches] [PATCH v2 0/2] buffer: port static allocator to Lua
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Sun May 19 01:15:07 MSK 2019
The patchset allows to use the static allocator from Lua, and optimizes some
commonly appearing problems with passing parameters into FFI functions by a
pointer.
Changes in V2:
- Split in 2 commits.
V1: https://www.freelists.org/post/tarantool-patches/PATCH-11-buffer-port-static-allocator-to-Lua
Branch: http://github.com/tarantool/tarantool/tree/gerold103/static-allocator-lua
Vladislav Shpilevoy (2):
buffer: port static allocator to Lua
buffer: replace all ffi.new(type[1]) with cached union
extra/exports | 2 ++
src/CMakeLists.txt | 1 +
src/box/lua/schema.lua | 3 +-
src/lua/buffer.c | 42 +++++++++++++++++++++++++++
src/lua/buffer.lua | 61 ++++++++++++++++++++++++++++++++++++++++
src/lua/crypto.lua | 22 +++++++--------
src/lua/digest.lua | 7 +++--
src/lua/fio.lua | 3 +-
src/lua/init.c | 2 +-
src/lua/msgpackffi.lua | 50 +++++++++++++-------------------
src/lua/socket.lua | 36 ++++++++++++++----------
src/lua/string.lua | 10 ++++---
src/lua/uri.lua | 7 +++--
src/lua/uuid.lua | 9 +++---
test/app/buffer.result | 53 ++++++++++++++++++++++++++++++++++
test/app/buffer.test.lua | 23 +++++++++++++++
16 files changed, 256 insertions(+), 75 deletions(-)
create mode 100644 src/lua/buffer.c
create mode 100644 test/app/buffer.result
create mode 100644 test/app/buffer.test.lua
--
2.20.1 (Apple Git-117)
More information about the Tarantool-patches
mailing list