3 ms·
I guess the goal is to make python to do all the logic glue _and_ the computation? otherwise, just using it as a logic glue language, and offload anything memor
by synergy20 3y ago
I guess the goal is to make python to do all the logic glue _and_ the computation? otherwise, just using it as a logic glue language, and offload anything memory intensive or computation intensive to a C library(e.g. numpy), that shall work pretty well to me.
to make Python as efficient as C will be great of course, but is it really that critical? it's a scripting language after all, and all script language all have similar "problems" by design: they're designed to glue, not to compute to me.
a different approach to me is to improve the CFFI, e.g. how to avoid memory copies and data passing, that might be easier, I'm not sure.
in the end, any efforts to make python (along with its modules) faster is nice to have.
- kzrdude 3y agoPython as efficient as C is not the goal, the goal is to make python faster.