Hi,

I'm using redis in an embedded environment where hardware resources are a little sparse. While updating from 4.0.8 to 4.0.10 I noticed binary filesize increased quite a lot (using same compiler with libc malloc)

redis-server 4.0.8: 2.55 MiB redis-server 4.0.10: 2.93 MiB

I doublechecked and I'm definitely not using jemalloc, "redis-server --version" prints: Redis server v=4.0.10 sha=00000000:0 malloc=libc bits=32 build=12fbf41c347e1897

I'm just wondering if this is normal and if I should expect increases like this in the future?

Comment From: Linkerist

Redis is very strict with the code quality indeed, but it is difficult to get control of binary size while adding features in the meantime.
You can add some optimize options in compiler or play some tricks in linker script to reduce the size of software itself.
AFAIK, nowadays, in most embedded environment, this change is acceptable.

Comment From: antirez

Are you sure it is not related to the compiler? If you are sure, you should try to bisect in order to understand what is the commit that changed the size and report back. AFAIK there is no big change that should justify this modification, but maybe there is some new static function in some header file or alike, not sure.

Comment From: yoav-steinberg

git bisect can definitely help here. Let me know if you need help with this. Since there's been no response for a while I'm closing this.