5 ms·
No, C is fast, even tcc which does essentially no optimization except for constant folding is about half as fast as gcc -O1 I think. Basically no special work i
by andrewchambers 12y ago
No, C is fast, even tcc which does essentially no optimization except for constant folding is about half as fast as gcc -O1 I think. Basically no special work is needed to be 50 times as fast as python.
- ris 12y ago"No special work" except the massively more laborious effort of writing the whole thing in C.
- andrewchambers 12y agoI was referring to no special work on the part of the compiler writer, not the application writer.
- jerven 12y agoWhich python?
- andrewchambers 12y agoCPython 2.6 last I tried benchmarking tcc and python. Obviously pypy or pyston might have an edge for certain snippets after a long jit warmup.