[ruby-cvs:69585] tenderlove:r62404 (trunk): load.c: reduce memory usage of loaded_features_index

tenderlove at ruby-lang.org tenderlove at ruby-lang.org
Thu Feb 15 03:38:34 JST 2018


tenderlove	2018-02-15 03:38:33 +0900 (Thu, 15 Feb 2018)

  New Revision: 62404

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62404

  Log:
    load.c: reduce memory usage of loaded_features_index
    
    Use integer hashsum instead of string as a key in loaded_features_index.
    Do not use ruby strings for substring operation, just plain pointer
    and length.
    
    [ruby-core:53688]
    
    Co-authored-by: Sokolov Yura aka funny_falcon <funny.falcon at gmail.com>

  Modified files:
    trunk/load.c


More information about the ruby-cvs mailing list