Skip to content

Instantly share code, notes, and snippets.

View petejkim's full-sized avatar
💭
I may be slow to respond.

Pete Kim petejkim

💭
I may be slow to respond.
View GitHub Profile
@petejkim
petejkim / latency.txt
Created January 31, 2017 18:05 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD

Some perspective...

$1.2 million is almost equal to an entire month's revenue.
With two small tweaks to our website could help drive this kind of money.
No extra sales guy or new pricing model required.

Information Architecture

What is Information Architecture?

Information architecture (IA) is the art and science of organizing and labelling websites, intranets, online communities and software to support usability. --Wikipedia

//
// NSObject+ProcObservation.h
// Version 1.0
//
// Andy Matuschak
// andy@andymatuschak.org
// Public domain because I love you. Let me know how you use it.
//
// NTW 2009-Oct-21: Added selectors with an options argument.
// NTW 2009-Oct-30: Transplanted new observation key from MYUtilities's KVUtils.
@petejkim
petejkim / macruby_deploy
Last active December 12, 2015 00:09 — forked from joefiorini/macruby_deploy
use product name instead of project name to find the app bundle
#!/Library/Frameworks/MacRuby.framework/Versions/0.13/usr/bin/macruby
# MacRuby Deployer.
#
# This file is covered by the Ruby license.
#
# Copyright (C) 2012, The MacRuby Team
# Copyright (C) 2009-2011, Apple Inc
require 'optparse'
require 'rbconfig'