Permalink
Commits on Mar 31, 2012
  1. Workaround for Range#relative_to

    ferrous26 committed Mar 25, 2012
    This is a workaround until https://bugs.ruby-lang.org/issues/6203
    is addressed and we can apply the fix from there. Or this will be
    a permanent work around in the unlikely case that the change is
    rejected.
Commits on Mar 16, 2012
  1. Added dylib files

    danielwestendorf committed with ferrous26 Jan 30, 2012
Commits on Nov 19, 2011
  1. add a workaround for #1411.

    Watson1978 committed Nov 19, 2011
Commits on Nov 17, 2011
Commits on Nov 5, 2011
  1. Fix Range to NSRange transaltions

    ferrous26 committed Oct 31, 2011
    Fence post error!
Commits on Oct 19, 2011
Commits on Oct 17, 2011
  1. new license stuff

    Laurent Sansonetti committed Oct 17, 2011
  2. add BSDL file

    Laurent Sansonetti committed Oct 17, 2011
  3. update to new ruby license

    Laurent Sansonetti committed Oct 17, 2011
Commits on Oct 16, 2011
  1. Performance improvement in StringIO. do not use the values via access…

    Watson1978 committed Oct 16, 2011
    …or method.
    
    * before
          user     system      total        real
      0.180000   0.000000   0.180000 (  0.155949)
    
    * after
          user     system      total        real
      0.150000   0.000000   0.150000 (  0.131242)
    
    ----
    require 'benchmark'
    require 'stringio'
    
    Benchmark.bm do |x|
      str = "x" * 100000
      io = StringIO.new(str)
    
      x.report do
        100000.times do
          io.getc
        end
      end
    end
  2. Performance improvement in StringScanner#scan

    Watson1978 committed Oct 16, 2011
    * before
          user     system      total        real
      0.030000   0.000000   0.030000 (  0.018517)
    * after
          user     system      total        real
      0.020000   0.000000   0.020000 (  0.015783)
    ----
    require 'benchmark'
    require 'strscan'
    Benchmark.bm do |x|
      str = "x" * 500000
      s = StringScanner.new(str)
      x.report do
        s.scan(/./)
      end
    end
  3. Performance improvement in StringScanner. do not use the values via a…

    Watson1978 committed Oct 16, 2011
    …ccessor method.
    
    * before
          user     system      total        real
      0.000000   0.000000   0.000000 (  0.003927)
    
    * after
          user     system      total        real
      0.000000   0.000000   0.000000 (  0.002341)
    
    ----
    require 'benchmark'
    require 'strscan'
    
    Benchmark.bm do |x|
      str = "x" * 500000
      s = StringScanner.new(str)
      x.report do
        1000.times do
          s.concat "a"
        end
      end
    end
  4. Performance improvement in StringScanner#rest_size

    Watson1978 committed Oct 16, 2011
    * before
          user     system      total        real
      0.200000   0.010000   0.210000 (  0.211851)
    
    * after
          user     system      total        real
      0.010000   0.000000   0.010000 (  0.004731)
    
    ----
    require 'benchmark'
    require 'strscan'
    
    Benchmark.bm do |x|
      str = "x" * 50000
      s = StringScanner.new(str)
      x.report do
        10000.times do
          s.rest_size
        end
      end
    
    end
Commits on Oct 15, 2011
  1. StringIO#getc will raise an exception when closed a reading stream.

    Watson1978 committed Oct 15, 2011
    ----
    require 'stringio'
    require 'test/unit/assertions.rb'
    include Test::Unit::Assertions
    
    io = StringIO.new("hello")
    io.close_read
    assert_raise(IOError) { io.getc }
  2. StringIO#write will raise an exception when closed a writing stream a…

    Watson1978 committed Oct 15, 2011
    …nd passed a n empty string.
    
    ----
    require 'stringio'
    require 'test/unit/assertions.rb'
    include Test::Unit::Assertions
    
    io = StringIO.new("hello")
    io.close_write
    assert_raise(IOError) { io.write("") }
    
    io = StringIO.new("hello".freeze)
    assert_raise(IOError) { io.write("") }
  3. StringIO#ungetc will raise an exception when closed a reading stream …

    Watson1978 committed Oct 15, 2011
    …and passed a nil.
    
    ----
    require 'stringio'
    require 'test/unit/assertions.rb'
    include Test::Unit::Assertions
    
    io = StringIO.new("A")
    io.close_read
    assert_raise(IOError) { io.ungetc(nil) }
Commits on Oct 14, 2011
  1. Performance improvement in str_resize_bytes. because reallocation of …

    Watson1978 committed Oct 14, 2011
    …the long string is slow, memory allocate more size than the specified size.
    
    * before
          user     system      total        real
      3.870000   2.790000   6.660000 (  5.048851)
    
    * after
          user     system      total        real
      0.030000   0.010000   0.040000 (  0.037597)
    
    ----
    require 'benchmark'
    
    Benchmark.bm do |x|
      str = "aaa"
      x.report do
        5000.times do
          str << "x" * rand(1000)
        end
      end
    
    end
Commits on Oct 13, 2011
Commits on Oct 12, 2011
Commits on Oct 10, 2011
  1. Performance improvement, when invoke the String#<<.

    Watson1978 committed Oct 10, 2011
    * before
          user     system      total        real
      0.960000   0.050000   1.010000 (  0.996849)
    * after
          user     system      total        real
      0.060000   0.030000   0.090000 (  0.095387)
    ----
    require 'benchmark'
    Benchmark.bm do |x|
      str = "abc" * 1000
      add = "foo" * 10
      x.report do
        5000.times do
          str = str << add
          str[0..10]
        end
      end
    end
  2. ext/socket: fix a buffer size in gethostname because terminate NULL b…

    Watson1978 committed Oct 10, 2011
    …yte does not included in HOST_NAME_MAX when Host name length is HOST_NAME_MAX.
Commits on Oct 8, 2011
  1. Merge pull request #45 from ferrous26/46f7fd6f

    Watson1978 committed Oct 8, 2011
    Make rexml use the compiled files