Skip to content

Instantly share code, notes, and snippets.

View hrwgc's full-sized avatar

Chris Herwig hrwgc

  • Google
  • San Francisco
View GitHub Profile

perf guide

Profiling tools are critical for trying to understand performance bottlenecks in code.

Without real data about what a program is doing while running, detecting bottlenecks is at best a process of trial and error for both users and developers. While thoughtful testing of various program configurations along with measuring time elapsed for decrete runs can often be enough - why not learn faster and funner ways to rapidly collect real data about what a program is doing?

Actual data about program execution like which functions are being called while a program is active helps point to hot parts of the code where most time may be being spent. While users of applications may not easily understand the output of profiling tools, being equipped to generate profiling output can be extremely useful for sharing with developers, since the time to set up robust test cases for developers is can be greater than the time it takes to understand and optimize slow code paths. Therefore it can be invaluable to get

before

30 meter resolution EO1-ALI Satellite Image

After

@hrwgc
hrwgc / index.html
Created July 13, 2012 02:49 — forked from bsudekum/Interact.txt
Files for GitHub tiles
<DOCTYPE html>
<html>
<head>
<title>Stop and Frisk</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--[if lte IE 8]><link rel="stylesheet" href="js/ext/wax/ext/leaflet.ie.css" /><![endif]-->
<script src="js/ext/wax/ext/leaflet.js"></script>
<script src='js/ext/wax/dist/wax.leaf.min.js' type='text/javascript'></script>
<link rel="stylesheet" href="js/ext/wax/ext/leaflet.css" />