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] Re: [PATCH 0/3] introduce static allocator
Date: Tue, 14 May 2019 01:57:45 +0300	[thread overview]
Message-ID: <4929acbd-7888-9ca4-af57-238f0ce876b4@tarantool.org> (raw)
In-Reply-To: <cover.1556470563.git.v.shpilevoy@tarantool.org>

Pushed into the master, but with a change: tt_static_buf()
now uses static_aligned_alloc with alignment by 'intptr_t'.
So it can be used to allocate temporary arrays of any types.

Note, that I kept tt_static.h header, because small/static is
an allocator, not a string formatter. And I decided, that it
should not include string-related utils, stdio.h header etc.

On 28/04/2019 19:56, Vladislav Shpilevoy wrote:
> The patchset 1) fixes a bug about static buffers duplication in each C-file
> using them, 2) introduces static memory allocator to avoid temporary on-stack
> and BSS allocations.
> 
> Branch: http://github.com/tarantool/tarantool/tree/gerold103/small-static-alloc
> 
> Vladislav Shpilevoy (3):
>   small: introduce small/static
>   Use static_alloc() instead of 'static char[]' where possible
>   sio: optimize sio_strfaddr() for the most common case
> 
>  src/box/call.c                |   1 +
>  src/box/identifier.c          |   2 +-
>  src/box/identifier.h          |   1 -
>  src/box/iproto.cc             |   3 +-
>  src/box/memtx_engine.c        |   8 +--
>  src/box/opt_def.c             |   1 +
>  src/box/relay.cc              |   2 +-
>  src/box/session.cc            |   1 +
>  src/box/space_def.c           |   1 +
>  src/box/space_def.h           |   2 +-
>  src/box/sql/sqlLimit.h        |   2 +-
>  src/box/tuple.h               |   1 +
>  src/box/tuple_format.c        |   1 +
>  src/box/user.cc               |   1 +
>  src/box/vclock.c              |   2 +-
>  src/box/vy_log.c              |   2 +-
>  src/box/xlog.c                |  24 +++----
>  src/box/xlog.h                |   2 +-
>  src/box/xrow.c                |   2 +-
>  src/cfg.c                     |  15 ++---
>  src/httpc.c                   |   7 +-
>  src/lib/coll/coll.c           |   2 +-
>  src/lib/core/fio.c            |   2 +-
>  src/lib/core/say.c            |   1 +
>  src/lib/core/sio.c            |  24 ++++---
>  src/lib/core/tt_static.h      | 118 ++++++++++++++++++++++++++++++++++
>  src/lib/small                 |   2 +-
>  src/lib/swim/swim_io.h        |   2 +-
>  src/lib/swim/swim_proto.h     |   2 +-
>  src/lib/swim/swim_transport.h |   1 -
>  src/lib/uuid/tt_uuid.c        |   2 +-
>  src/lua/utf8.c                |   1 +
>  src/trivia/util.h             |  53 ---------------
>  33 files changed, 182 insertions(+), 109 deletions(-)
>  create mode 100644 src/lib/core/tt_static.h
> 

      parent reply	other threads:[~2019-05-13 22:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-28 16:56 [tarantool-patches] " Vladislav Shpilevoy
2019-04-28 16:56 ` [tarantool-patches] [PATCH 1/3] small: introduce small/static Vladislav Shpilevoy
2019-04-28 16:56 ` [tarantool-patches] [PATCH 2/3] Use static_alloc() instead of 'static char[]' where possible Vladislav Shpilevoy
2019-04-28 16:56 ` [tarantool-patches] [PATCH 3/3] sio: optimize sio_strfaddr() for the most common case Vladislav Shpilevoy
2019-05-14  8:09   ` Vladimir Davydov
2019-04-29  4:14 ` [tarantool-patches] Re: [PATCH 0/3] introduce static allocator Konstantin Osipov
2019-04-29  8:35   ` Vladislav Shpilevoy
2019-05-13 22:57 ` Vladislav Shpilevoy [this message]

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=4929acbd-7888-9ca4-af57-238f0ce876b4@tarantool.org \
    --to=v.shpilevoy@tarantool.org \
    --cc=kostja@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='[tarantool-patches] Re: [PATCH 0/3] introduce static allocator' \
    /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