1. 27 Jul, 2016 3 commits
    • Malizia R's avatar
      Update mirb.c · 1c7572bc
      Malizia R authored
      1c7572bc
    • Yukihiro "Matz" Matsumoto's avatar
      Merge pull request #3185 from kou/string-reduce-needless-array · 2b4ed40f
      Yukihiro "Matz" Matsumoto authored
      Reduce needless Array generation in some String methods
      2b4ed40f
    • Kouhei Sutou's avatar
      Reduce needless Array generation in some String methods · 6bb0775d
      Kouhei Sutou authored
      Here are some benchmarks:
      
      each_char:
      
          # /tmp/each_char.rb
          a = "a" * 1000000
          a.each_char do |x|
          end
      
      Without this change:
      
          % time bin/mruby /tmp/each_char.rb
          bin/mruby /tmp/each_char.rb  1.07s user 0.02s system 99% cpu 1.088 total
      
      With this change:
      
          % time bin/mruby /tmp/each_char.rb
          bin/mruby /tmp/each_char.rb  0.52s user 0.01s system 99% cpu 0.530 total
      
      2 times faster with this change.
      
      codepoints:
      
          # /tmp/codepoints.rb
          a = "a" * 1000000
          a.codepoints do |x|
          end
      
      Without this change:
      
          % time bin/mruby /tmp/codepoints.rb
          bin/mruby /tmp/codepoints.rb  1.16s user 0.05s system 99% cpu 1.216 total
      
      With this change:
      
          % time bin/mruby /tmp/codepoints.rb
          bin/mruby /tmp/codepoints.rb  0.56s user 0.02s system 99% cpu 0.589 total
      6bb0775d
  2. 26 Jul, 2016 2 commits
  3. 25 Jul, 2016 6 commits
  4. 23 Jul, 2016 3 commits
  5. 22 Jul, 2016 2 commits
  6. 14 Jul, 2016 4 commits
  7. 12 Jul, 2016 1 commit
  8. 08 Jul, 2016 1 commit
  9. 07 Jul, 2016 1 commit
  10. 01 Jul, 2016 2 commits
  11. 30 Jun, 2016 1 commit
  12. 29 Jun, 2016 1 commit
  13. 18 Jun, 2016 1 commit
  14. 17 Jun, 2016 2 commits
  15. 14 Jun, 2016 2 commits
  16. 10 Jun, 2016 3 commits
  17. 16 May, 2016 1 commit
  18. 15 May, 2016 2 commits
  19. 11 May, 2016 1 commit
  20. 10 May, 2016 1 commit