News for hackers. Stuff that matters.
Re:Why Python Runs Slow, Part 1: Data Structures by michaelmior on Thursday February 13, 2014 @09:01AM (#7231369)
Curious if you included ctypes.Structure in your benchmark.
Re:Why Python Runs Slow, Part 1: Data Structures by NigelTufnel on Thursday February 13, 2014 @09:24AM (#7231502)
I just did. And either a) I'm doing something terribly wrong or b) ctypes.Structure is slower than Python class with __slots__.

I would bet on a) - I've never worked with ctypes before.

EDIT: I bet on a) and I was wrong: ctypes offers no speed advantage.