1
2
3
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 speed, rake, sitemap, rails

Hi,

I'm looking for a wa...

175ab087b0647367da3d370fbf5bc024 Talk
1
2
3
;(function($) {
        $.fn.extend(
...

JavaScript filter selectbox with 3000+...

by akarzim, February 03, 2010 23:05, 2 refactorings, tagged with jquery, dom, speed, select

This is a little jQuery scr...

0018abed2b5e8b460993ed915adc0d11 Talk
1
2
3
4
<?php
//class
	class Collection{
...

PHP How should I optimize this ...

by blackBear, December 07, 2009 23:13, 2 refactorings, tagged with speed, port

Hi everybody!
I'm kinda ne...

7aa9a6d812dc3a96d9f5e39fb07e84f5 Talk
1
2
3
4
private static void Log(object message, MessageType type)
		{
			string str = message.ToString();
...

C# Line splitting optimization

by xeon06.myopenid.com, December 07, 2009 20:59, 3 refactorings, tagged with optimize, speed, C#, xna, lines

This is a console logging f...

Avatar Talk
1
2
3
4
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 ruby, net-sftp, files, recursion, speed

I'm trying to clear a remot...

50f0d4a5dcd394a6e13ca37ffe6a38e3 Talk
1
2
3
4
<?php
function word_limiter( $text, $limit = 30, $chars = '0123456789' ) {
    if( strlen( $text ) > $limit ) {
...

PHP Limit amount of words displ...

by charliefrancis, July 30, 2009 09:37, 6 refactorings, tagged with php, speed, limit

It returns a string with a ...

2a6fcd188b27b22064dcbd416f2c8ef1 Talk
1
2
3
4
using System;
using System.Collections.Generic;
using System.Linq;
...

C# Cached IEnumerable<T>

by Charles Strahan, July 06, 2009 15:15, 1 refactoring, tagged with speed, C#, IEnumerable

Hello,

I created a this ...

A1e6f320dcdb6a0afd7fd19a1e5f932e Talk
1
2
3
4
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, big O, ruby

Intersperse is a method of ...

A5dbf79f90041e79418a6829d414b46e Talk
1
2
3
4
#!/bin/bash

# Global variables
...

Bash Adding speed to script

by Zmyrgel, June 03, 2009 07:14, -37 refactorings, tagged with speed, awk, shell

I'm trying to collect custo...

Avatar Talk
1
2
3
4
    public static String findsite(InputStream text) {
      String site, line = null;
      Boolean nospace = true;
...

Java speed up this horrendous co...

by feydr.myopenid.com, May 21, 2009 16:01, 4 refactorings, tagged with java, speed, conditionals

I don't know too much about...

7c3536f0ffdc51a02ec2c9d1d72165d5 Talk
1
2
3
4
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, ruby, class, arrays

Is there a faster way to do...

74198b06bc9e68739debfe6c23e070d3 Talk
1
2
3
4
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 haar, wavelet, optimize, fast, speed

Anyone want to help me opti...

Avatar Talk
1
2
3
4
public static String[] loadFile(final String f) {
		String thisLine;
		final SortedSet<String> s = new TreeSet<String>();
...

Java Efficiently load a text fil...

by firesalamander.myopenid.com, November 25, 2008 07:04, 1 refactoring, tagged with speed, buffered

Has full "finally" blocks, ...

4100acda45394fa4e8efc805a486b732 Talk
1
2
3
4
// For faster converting of dates to strings
char* sLeadingZeroIntegerValues[] = {
"00","01","02","03","04","05","06","07","08","09",
...

C++ Stream ADODB recordset into...

by ctrager.blogspot.com, November 11, 2008 12:30, 2 refactorings, tagged with C++, COM, ADODB, STL, speed

Can we make the code betwee...

23da7be57867a7eb54b583983c89b375 Talk
1
2
3
4
#!/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
1
2
3
4
function state_classes(updateall) {
    var value = display.value * 1, tempcolor;
    for (var i = 1; i <= 118; i++) {
...

JavaScript Color elements by state of ...

by Lucent, September 15, 2008 17:09, 3 refactorings, tagged with speed

Logic is cheap and DOM is e...

38daf62a7887b44454a78a37552b22e4 Talk
1
2
3
4
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
1
2
3
#include <math.h>
#include <stdio.h>
...

C Fastest way to get value of pi

by Chris Jester-Young, July 30, 2008 03:50, 3 refactorings, tagged with pi, speed, language agnostic

Solutions welcome in any la...

729442eea8d8548842a6e0947e333c7b Talk
1
2
3
4
public static function getColorFromString(color:String):int
{
    return parseInt(new RegExp(/[0-9a-fA-F]+/).exec(color),16);
...

ActionScript Get color from string

by shaman4d.blogspot.com, July 11, 2008 10:54, 7 refactorings, tagged with speed, convert, as3

Script was written on AS3. ...

9a74ef7809e84411f21dd71771cf0534 Talk
1
2
3
4
$.fn.textNodes = function() {
  var ret = [];
  this.each( function() {
...

JavaScript [jQuery] All descendent tex...

by jed, June 29, 2008 07:35, 7 refactorings, tagged with jquery, dom, speed, recursive

This function returns a jQu...

7b72d5a18ab92129692e97a76a153fe0 Talk
1
2
3
4
function calc_color(value, start, end, min, max) {
    var n = (value - min) / (max - min);
    var s = parseInt(start.replace("#", ""), 16);
...

JavaScript Hex color between two colors

by Lucent, March 11, 2008 08:27, 3 refactorings, tagged with speed

Watch out for edge cases, l...

38daf62a7887b44454a78a37552b22e4 Talk
1
2
3
4
# 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 boids, swarm, shoes, vector, speed

You will need Shoes install...

0611073adbcf46f93b7d8bf059c109b8 Talk
1
2
3
public PreviewTreeModel(Collection<FileDescription> files)
	{
...

Java Create a tree out of a coll...

by Loid, March 02, 2008 19:14, 1 refactoring, tagged with tree, file, speed

I would like to transform a...

2b3b5047901ac67fefd8b392c26027b4 Talk
1
2
3
4
SCRIPT="gen_${1}.sql"
echo "--gen_${1}.sql" > $SCRIPT
typeset -i counter
...

Bash Slow bash for loop.

by furtive, February 07, 2008 19:57, 6 refactorings, tagged with bash, speed, loop

Here's a quick and dirty ba...

Avatar Talk
1
2
3
4
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, 1 refactoring, tagged with speed

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

7c45f63f61e478233f0c2ad3006b178c Talk