|
|
|
|
|
by 6gvONxR4sf7o
1732 days ago
|
|
Cython is so great. The two easiest ways I know to speed up python are 1) can I write this arraywise with enough cleverness (it's much more frequently doable than I always expect, and often comes with clarity gains) and just use numpy, and 2) just use cython. If cython wasn't such a pain in the ass to debug, maybe we'd all be writing cython instead of python today. |
|
In most cases figuring out how to do it with nutty numpy is the least time consuming and is fast enough.