• Y
    DBOptions serialization and deserialization · 9ec95715
    Yueh-Hsuan Chiang 提交于
    Summary:
    This patch implements DBOptions deserialization and improve
    the current implementation of DBOptions serialization by
    using a static structure that stores the offset of each
    DBOptions member variables to perform serialization and
    deserialization instead of using tons of if-then-branch
    to determine the mapping between string and variables.
    
    Test Plan: Added test in options_test.cc
    
    Reviewers: igor, anthony, sdong, IslamAbdelRahman
    
    Reviewed By: sdong
    
    Subscribers: dhruba
    
    Differential Revision: https://reviews.facebook.net/D44097
    9ec95715
options_helper.h 5.5 KB