Profile cover photo
Profile photo
Jason Smith
88 followers
88 followers
About
Jason's posts

Post has attachment

Post has attachment

Post has shared content
Seems relevant considering the room I'm sitting in right now.
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
Building had smoke showing from windows on all floors on the D side which is in the alley (out of view)
PhotoPhotoPhotoPhotoPhoto
7 Photos - View album

Post has shared content

Post has attachment
Added photos to Google I/O After Hours with Train and Paul Oakenfold!.

Post has attachment

Post has shared content

Post has shared content
To all my mobile developer friends... this could be worth your time

Post has attachment
Wait while more posts are being loaded