General

Profile

phiggins (Pete Higgins)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 8 9

Activity

08/24/2014

12:23 AM Ruby Feature #10165: Use Process.clock_gettime to speed up Benchmark.realtime.
Eric Wong wrote:
> I like this. The speedup is from reduction of allocations+GC
> ...
It wasn't clear from the docs if there was a way to tell which modes were supported. Thanks for looking into that!
I've made an updated patch wit...
phiggins (Pete Higgins)

08/23/2014

09:01 PM Ruby Feature #10165 (Closed): Use Process.clock_gettime to speed up Benchmark.realtime.
This patch changes the Benchmark.realtime method to use the Process.clock_gettime internally when generating the time elapsed. Calling Process.clock_gettime is faster than the current way of creating Time objects.
I wrote a benchmark ...
phiggins (Pete Higgins)

06/04/2013

03:56 PM Ruby Feature #8478: The hash returned by Enumerable#group_by should have an empty array for its default value
duerst (Martin Dürst) wrote:
> I don't think I agree with the proposer. The example looks good, but what about something like:
> ...
I certainly didn't intend for the default value to have some idea of the type of comparison done by th...
phiggins (Pete Higgins)
03:51 PM Ruby Feature #8478: The hash returned by Enumerable#group_by should have an empty array for its default value
marcandre (Marc-Andre Lafortune) wrote:

> First of, it's a really bad idea to set the default of a hash to a mutable object:
Yes, I didn't consider the problem of returning the same array for every key, and that would have to be c...
phiggins (Pete Higgins)

06/03/2013

04:37 AM Ruby Feature #8478 (Assigned): The hash returned by Enumerable#group_by should have an empty array for its default value
Without this patch, nil checks might need to be done on the return value of Enumerable#group_by:
$ cat test_group_by.rb
a = [1, 2, 3, "a", "b"]
g = a.group_by {|o| o.class }
puts "Fixnums: #{g[Fixnum].size}"
puts "Strings: #{g[...
phiggins (Pete Higgins)

05/20/2011

11:55 AM Ruby Bug #4746 (Closed): Documentation for bigdecimal/util
This patch adds documentation for the methods in bigdecimal/util. Additionally, I removed some comments at the top that were incorrectly applied elsewhere as documentation for the Float class. phiggins (Pete Higgins)

05/17/2011

07:51 AM Ruby Bug #4709: Revise documentation for Singleton
I moved the tests into their own issue: http://redmine.ruby-lang.org/issues/4715 phiggins (Pete Higgins)
07:50 AM Ruby Bug #4715 (Closed): Add some basic tests for Singleton
Per the request over here: http://redmine.ruby-lang.org/issues/4709
I've added some basic tests for Singleton after removing some example code that seemed to function as tests.
phiggins (Pete Higgins)

05/16/2011

05:10 PM Ruby Bug #4709 (Closed): Revise documentation for Singleton
Singleton seemed to be light on documentation, and it included some non-working example code that seemed to function as documentation and tests. In addition, a few classes and methods in the example code were picked up by Rdoc.
The fi...
phiggins (Pete Higgins)
11:34 AM Ruby Bug #4702 (Closed): Some documentation for Digest
Some of the methods in the Digest family were undocumented or badly formatted. This patch adds a little polish.
These docs could probably stand to be restructured, but this takes care of the obvious bad spots.
phiggins (Pete Higgins)

Also available in: Atom