• antirez's avatar
    Cache uname() output across INFO calls. · d3efe04c
    antirez authored
    Uname was profiled to be a slow syscall. It produces always the same
    output in the context of a single execution of Redis, so calling it at
    every INFO output generation does not make too much sense.
    
    The uname utsname structure was modified as a static variable. At the
    same time a static integer was added to check if we need to call uname
    the first time.
    d3efe04c
redis.c 129 KB