[Tarantool-patches] [PATCH 00/22] Use void type in empty arguments list

Cyrill Gorcunov gorcunov at gmail.com
Sat Jul 4 10:30:38 MSK 2020


On Fri, Jul 03, 2020 at 11:23:17PM +0200, Vladislav Shpilevoy wrote:
> Hi!
> 
> Is there a measurement showing how this speeds up or reduces executable's
> size anyhow?

Before

[cyrill at grain tarantool.git] size ./src/tarantool 
   text	   data	    bss	    dec	    hex	filename
6315490	  41788	 128920	6486198	 62f8b6	./src/tarantool

After

[cyrill at grain tarantool.git] size ./src/tarantool 
   text	   data	    bss	    dec	    hex	filename
6308034	  41788	 128920	6478742	 62db96	./src/tarantool

(it is debug build) Note the .text is been shrunk.

> 
> Talking of the patch - why did you change .cc files? AFAIK, in C++
> (void) and () are the same. Just no arguments.

True, still we've a mess between () and (void) in cc files, so
I unified the approach.


More information about the Tarantool-patches mailing list