Profile cover photo
Profile photo
Keith Bourgoin
193 followers -
I work for a company named after a garnish
I work for a company named after a garnish

193 followers
About
Keith's posts

Post has attachment
PhotoPhotoPhotoPhotoPhoto
Blizzard Time Papercrafts!
7 Photos - View album

Post has attachment
In which Bowser is unimpressed I threw his ball into a blizzard.

Post has shared content
Some patterns for fast Python. Know any others?

- Avoid overengineering datastructures. Tuples are better than objects (try namedtuple too though). Prefer simple fields over getter/setter functions.

- Built-in datatypes are your friends. Use more numbers, strings, tuples, lists, sets, dicts. Also check out the collections library, esp. deque.

- Be suspicious of function/method calls; creating a stack frame is expensive.

- Don't write Java (or C++, or Javascript, ...) in Python.

- Are you sure it's too slow? Profile before optimizing!

- The universal speed-up is rewriting small bits of code in C. Do this only when all else fails.

Post has attachment

Post has attachment
Woohoo!  Our API really is pretty amazing.

Post has attachment
Dropped off my great grandfather's Philco to be restored. It's going to take until next May, but this is going to be great.
Photo

Post has attachment
Almost ready for Chinese New Year!
Photo

Post has attachment
Woo! Chinese New Year prep.
Photo

Post has attachment

Post has attachment
Wondering what I've been up to the past year? Great coverage of Parse.ly on +TechCrunch today. http://goo.gl/z3Y1M
Wait while more posts are being loaded