▲ | 9rx 2 days ago | |||||||
> CPython is a C program Go (gc) was also a C program originally. It still had the same overhead back then as it does now. The implementation language is immaterial. How things are implemented is what is significant. Go (tinygo), being a different implementation, can call C functions as fast as C can. > ...so it can too. In my experience, the C FFI overhead in CPython is significantly higher than Go (gc). How are you managing to avoid it? | ||||||||
▲ | pornel a day ago | parent | next [-] | |||||||
I think in case of CPython it's just Python being slow to do anything. There are costs of the interpreter, GIL, and conversion between Python's objects and low-level data representation, but the FFI boundary itself is just a trivial function call. | ||||||||
| ||||||||
▲ | johnisgood 2 days ago | parent | prev [-] | |||||||
I would like to know this, too. |