An error occurred fetching the project authors.
  1. 27 Jul, 2016 1 commit
    • 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 1 commit
  3. 14 Jul, 2016 1 commit
  4. 30 Jan, 2016 1 commit
  5. 23 Nov, 2015 1 commit
  6. 21 Oct, 2015 1 commit
  7. 20 Oct, 2015 1 commit
  8. 23 Sep, 2015 1 commit
  9. 22 Aug, 2015 1 commit
  10. 13 Jan, 2015 1 commit
  11. 12 Jan, 2015 1 commit
  12. 13 Dec, 2014 1 commit
  13. 23 Nov, 2014 1 commit
  14. 19 Jun, 2014 1 commit
  15. 15 Jun, 2014 1 commit
  16. 11 Jun, 2014 1 commit
  17. 03 Jun, 2014 1 commit
  18. 02 Jun, 2014 2 commits
  19. 20 Apr, 2014 1 commit
  20. 27 Dec, 2013 1 commit
  21. 19 Apr, 2013 1 commit
  22. 08 Mar, 2013 1 commit