Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
To: tarantool-patches@freelists.org
Cc: kostja@tarantool.org
Subject: [tarantool-patches] [PATCH v2 0/2] buffer: port static allocator to Lua
Date: Sun, 19 May 2019 01:15:07 +0300	[thread overview]
Message-ID: <cover.1558217352.git.v.shpilevoy@tarantool.org> (raw)

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)

             reply	other threads:[~2019-05-18 22:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-18 22:15 Vladislav Shpilevoy [this message]
2019-05-18 22:15 ` [tarantool-patches] [PATCH v2 1/2] " Vladislav Shpilevoy
2019-05-20  9:06   ` [tarantool-patches] " Konstantin Osipov
2019-05-18 22:15 ` [tarantool-patches] [PATCH v2 2/2] buffer: replace all ffi.new(type[1]) with cached union Vladislav Shpilevoy
2019-05-20 14:59   ` [tarantool-patches] " Vladislav Shpilevoy
2019-05-20 15:26     ` Konstantin Osipov
2019-05-21 16:56 ` [tarantool-patches] Re: [PATCH v2 0/2] buffer: port static allocator to Lua Vladislav Shpilevoy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1558217352.git.v.shpilevoy@tarantool.org \
    --to=v.shpilevoy@tarantool.org \
    --cc=kostja@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='Re: [tarantool-patches] [PATCH v2 0/2] buffer: port static allocator to Lua' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox