// 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 speed, C++, COM, ADODB, STL

Can we make the code betwee...

23da7be57867a7eb54b583983c89b375 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
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
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
#include <math.h>
#include <stdio.h>
...

C Fastest way to get value of pi

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

Solutions welcome in any la...

729442eea8d8548842a6e0947e333c7b Talk
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
$.fn.textNodes = function() {
  var ret = [];
  this.each( function() {
...

JavaScript [jQuery] All descendent tex...

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

This function returns a jQu...

7b72d5a18ab92129692e97a76a153fe0 Talk
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
# 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
public PreviewTreeModel(Collection<FileDescription> files)
	{
...

Java Create a tree out of a coll...

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

I would like to transform a...

29389e14fe7aea8d5517c69660b3964d Talk
SCRIPT="gen_${1}.sql"
echo "--gen_${1}.sql" > $SCRIPT
typeset -i counter
...

Bash Slow bash for loop.

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

Here's a quick and dirty ba...

55502f40dc8b7c769880b10874abc9d0 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
#Functions [javscript]
var ms = 0;
var state = 0;
...

JavaScript Stop Watch

by richardhealy, October 27, 2007 13:31, 3 refactorings, tagged with time, clock, speed, test, javascript

I use this to test speed of...

28e65a85a625f7c0689bcf96ccf6043d Talk