input = [9,9,9,9,9,9,9,9,9,9,9,9]
input.uniq == 9

...

Ruby Test if array contains the ...

by astropanic.myopenid.com, May 23, 2011 07:50, 11 refactorings, tagged with speed, array, uniqueness

How I can check all element...

55502f40dc8b7c769880b10874abc9d0 Talk
def remove_blanks(hash)
    values = {}
    hash.each do |k,v|
...

Ruby Clear a hash of empty strin...

by Nikos D., March 08, 2011 20:59, 2 refactorings, tagged with speed, ruby, recursion, readability

Any ideas for better implem...

59bbe3780ec28c45b4945f00435efeb3 Talk
def render_page_sitemap(scope, sitemapname,statics, machines, lang)
...

Ruby Speeding up Sitemap generation

by tiekuhn, February 14, 2010 16:35, 3 refactorings, tagged with rails, speed, rake, sitemap

Hi,

I'm looking for a wa...

175ab087b0647367da3d370fbf5bc024 Talk
require 'net/sftp'

class Net::SFTP::Session
...

Ruby NET::SFTP clear a remote di...

by dane.oconnor.myopenid.com, August 19, 2009 15:38, 1 refactoring, tagged with speed, ruby, recursion, net-sftp, files

I'm trying to clear a remot...

Ceb3004fcd7431660b8e16a91ca89b53 Talk
class Array

   # insert i between each element in the array
...

Ruby Ruby: array intersperse, ef...

by spoonerism.myopenid.com, June 10, 2009 11:00, 4 refactorings, tagged with speed, ruby, big O

Intersperse is a method of ...

A5dbf79f90041e79418a6829d414b46e Talk
class Item
  def raw_tag_list; "one, two, three, four, five"; end
  def public_tags; [<#Tag name=two>, <#Tag name=five>, <#Tag name=one>, <#Tag name=four>, <#Tag name=three>]; end
...

Ruby Tag ordering code

by k776, March 30, 2009 22:48, 12 refactorings, tagged with speed, class, ruby, arrays

Is there a faster way to do...

74198b06bc9e68739debfe6c23e070d3 Talk
def haar_1d(a)
	r = []
	(Math.log(a.length) / Math.log(2) - 1).to_i.downto(0) { |j|
...

Ruby Fast Haar Wavelet Transform

by data.map.myopenid.com, January 26, 2009 03:33, 4 refactorings, tagged with speed, haar, wavelet, optimize, fast

Anyone want to help me opti...

55502f40dc8b7c769880b10874abc9d0 Talk
#!/usr/bin/ruby
require 'builder'
require 'fasterCSV'
...

Ruby Speed up DB access?

by Dan, October 27, 2008 12:14, No refactoring, tagged with speed, builder, postgres

Is it possible to speed up ...

9800daba77be079c6c250a9bfe4a8e6c Talk
module Enumerable
  # Sorts the enumeration by mapping the
  # values in the enumeration through the given block.
...

Ruby sort_by_multiple

by Sporkmonger, September 05, 2008 13:11, 12 refactorings, tagged with speed, sorting

require "benchmark"
data_s...

56ee28134dd0776825445e3551979b14 Talk
# Boids - A Shoes Application
#
# Author       : Wally Glutton - http://stungeye.com
...

Ruby Boids - A Shoes Application

by stungeye, March 03, 2008 06:42, No refactoring, tagged with speed, boids, swarm, shoes, vector

You will need Shoes install...

0611073adbcf46f93b7d8bf059c109b8 Talk
SIXTYTWO = ('0'..'9').to_a + ('a'..'z').to_a + ('A'..'Z').to_a

def to_s_62(i)
...

Ruby Base 62 Encoding

by michiel, November 01, 2007 01:42, 4 refactorings, tagged with speed

Base WHAT??? Well, 62 is th...

7c45f63f61e478233f0c2ad3006b178c Talk