[ruby-cvs:56718] normal:r49568 (trunk): set: speed up Set#include?

normal at ruby-lang.org normal at ruby-lang.org
Thu Feb 12 04:04:17 JST 2015


normal	2015-02-12 04:04:16 +0900 (Thu, 12 Feb 2015)

  New Revision: 49568

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

  Log:
    set: speed up Set#include?
    
    * lib/set.rb (initialize): internal hash defaults to false
    
    * lib/set.rb (include?): use Hash#[] for optimized dispatch.
      Patch by Ismael Abreu <ismaelga at gmail.com>
      [ruby-core:67664] [Misc #10754]

  Modified files:
    trunk/ChangeLog
    trunk/lib/set.rb


More information about the ruby-cvs mailing list