SELECT p.pid, p.filename, AVG(v.vote) as avgv, COUNT(v.vote) as avgc
			FROM wp_ngg_pictures p
			LEFT JOIN wp_nggv_votes v ON (p.pid = v.pid)
...

PHP SQL Query Optimization

by https://www.google.com/accounts/o8/id?id=AItOawmyRuor7Z0aC0QytK3lMrz5h5jH73-dECw, December 13, 2011 21:03, 3 refactorings, tagged with speed, sql, optimization

This SQL query is currently...

55502f40dc8b7c769880b10874abc9d0 Talk
$(function(){
  $("a").each(function(){
    var _this = $(this);
...

JavaScript Rewrite amazon URL's with J...

by jspr, October 20, 2011 00:28, 3 refactorings, tagged with speed, jquery

I use this with dotjs to re...

3ec52e31343e4baa96af6bb001465f30 Talk
public static class Fnv1Hash
{
    public static uint ComputeHash32(IEnumerable<byte> bytes)
...

C# FNV-1 and FNV-1a Hash for 3...

by Ants, June 27, 2011 13:00, 10 refactorings, tagged with speed, clarity, FNV, DRY

There has to be a better wa...

F9a9ba6663645458aa8630157ed5e71e Talk
import sys 
from math import log 

...

Python Haar Transform

by talonx, June 16, 2011 11:33, No refactoring, tagged with speed, python, haar

Using a list for storing th...

Dc8678ff6917f939f852bea6e469b829 Talk
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
// this is in the global scope of my program. normally accepted as bad code, 
// but it seems to make sense in the context of an embedded platform.
// "global" cache
...

C++ String parsing in AVR-GCC

by Greg Buehler, April 18, 2011 07:58, 6 refactorings, tagged with speed, C++

I'm working on interfacing ...

C3b0b8da886396ca8d5a28ad397c404d 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
function demortonize($n)
{
	$row = $col = 0;
...

PHP De-interleaving bits. Again

by acmesquares.myopenid.com, January 21, 2011 16:36, 1 refactoring, tagged with speed, php, interleave, bitwise

Function needs to take a se...

1731ed1957835d6573324dba9e4774e3 Talk
$css = preg_replace('/\s\s+/', '', preg_replace('@/\\*([\\s\\S]*?)\\*/@','',$css));

PHP Remove Whitespace & Com...

by https://www.google.com/accounts/o8/id?id=AItOawlfLKQUOxClQ5HmGAqM_lnwQLGwjnkD4TI, January 06, 2011 20:34, 4 refactorings, tagged with speed, php, regex

I'm wondering if this is th...

55502f40dc8b7c769880b10874abc9d0 Talk
function deinterleave(base4_arr)
{
	var x='',y='',rc;
...

JavaScript De-interleaving bits

by acmesquares.myopenid.com, January 01, 2011 12:08, 2 refactorings, tagged with speed, javascript, interleave, bitwise

Function takes an array of ...

1731ed1957835d6573324dba9e4774e3 Talk
asdf a

ActionScript faf

by https://www.google.com/accounts/o8/id?id=AItOawkfMCLMu0fYB4Lo5cyOkGzdvImXkQBM7yM, August 06, 2010 06:56, No refactoring, tagged with speed

asf

55502f40dc8b7c769880b10874abc9d0 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
;(function($) {
        $.fn.extend(
...

JavaScript filter selectbox with 3000+...

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

This is a little jQuery scr...

0018abed2b5e8b460993ed915adc0d11 Talk
<?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
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 speed, C#, optimize, xna, lines

This is a console logging f...

55502f40dc8b7c769880b10874abc9d0 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
<?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, 13 refactorings, tagged with speed, php, limit

It returns a string with a ...

Cb7e457f43aaafeb9975b9da8f209e4a Talk
using System;
using System.Collections.Generic;
using System.Linq;
...

C# Cached IEnumerable<T>

by Charles Strahan, July 06, 2009 15:15, 6 refactorings, tagged with speed, C#, IEnumerable

Hello,

I created a this ...

A1e6f320dcdb6a0afd7fd19a1e5f932e 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
#!/bin/bash

# Global variables
...

Bash Adding speed to script

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

I'm trying to collect custo...

D41d8cd98f00b204e9800998ecf8427e Talk
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 speed, java, conditionals

I don't know too much about...

7c3536f0ffdc51a02ec2c9d1d72165d5 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
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, 2 refactorings, tagged with speed, buffered

Has full "finally" blocks, ...

4100acda45394fa4e8efc805a486b732 Talk
// 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