Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Grant Hollingworth's latest activity

Wednesday, January 19 2011
2503 validates_uniqueness_of is horribly inefficient in mysql was updated in Ruby on Rails
  • Grant Hollingworth
    • Tag set to patch
    by Grant Hollingworth at 4:36 PM

    Here's a patch I've been using, rebased against the current HEAD. It adds a case_insensitive_equality_operator method to ActiveRecord::ConnectionAdapters::Datab...

Thursday, November 06 2008
1336 starttls for smtp makes gmail go was created in Ruby on Rails
  • Grant Hollingworth
    Grant Hollingworth created the ticket at 4:18 AM

    Gmail's SMTP server requires STARTTLS to be enabled. The action_mailer_tls plugin allows this by patching Net::SMTP. As of Ruby 1.8.7, Net::SMTP has this suppor...

Wednesday, June 11 2008
382 faster Hash#except was updated in Ruby on Rails
  • Grant Hollingworth
    Grant Hollingworth commented at 4:49 AM

    Okay, updated benchmarks:

    except: small hash, 100 000 times

                         user     system      total        real

    except_reject    1.250000   0.0100...

Tuesday, June 10 2008
382 faster Hash#except was created in Ruby on Rails
  • Grant Hollingworth
    Grant Hollingworth created the ticket at 5:02 PM

    The current version of Hash#except uses include?, which is incredibly slow for a long list of keys.

    This patch is based on a similar one for Merb. The Merb ti...

Saturday, May 31 2008
286 [PATCH] fixed typo in Hash#except! doc was created in Ruby on Rails