[Tarantool-patches] [PATCH 00/43] Unhide symbols
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Mon Apr 13 17:26:41 MSK 2020
Another possible improvement I can think of - instead of
using 'static void *syms[]' everywhere I could make all
*_export_syms() functions take an argument like
void (*export_f)(void **syms)
And they would pass pointers at their functions there.
The main file, exports.c, would pass here a function, which
does nothing. Or does panic(), but we will never call these
_export_syms() functions actually. Will place it under
something like 'if (time(NULL) == 0)'.
That would allow to turn static arrays into normal arrays on
the stack and make the executable's size a bit smaller.
More information about the Tarantool-patches
mailing list