• antirez's avatar
    RDB: load files faster avoiding useless free+realloc. · 61b15307
    antirez authored
    Reloading of the RDB generated by
    
        DEBUG POPULATE 5000000
        SAVE
    
    is now 25% faster.
    
    This commit also prepares the ability to have more flexibility when
    loading stuff from the RDB, since we no longer use dbAdd() but can
    control exactly how things are added in the database.
    61b15307
db.c 58.7 KB