• Guy Benoish's avatar
    Trim SDS free space of retained module strings · 6a3fca4c
    Guy Benoish authored
    In some cases processMultibulkBuffer uses sdsMakeRoomFor to
    expand the querybuf, but later in some cases it uses that query
    buffer as is for an argv element (see "Optimization"), which means
    that the sds in argv may have a lot of wasted space, and then in case
    modules keep that argv RedisString inside their data structure, this
    space waste will remain for long (until restarted from rdb).
    6a3fca4c
module.c 203 KB