3 ms·
Read: "The overhead of abstraction in languages that do optimizing compilation versus languages that don't".
by TheLoneWolfling 12y ago
Read: "The overhead of abstraction in languages that do optimizing compilation versus languages that don't".
- haberman 12y agoAlso: CPython and MRI don't do optimizing compilation, which is not entirely obvious considering they both do compile to bytecode and optimize slightly.
- TheLoneWolfling 12y agoDon't know about MRI. With Python (as it's the reference implementation, I don't see the need to call it by another name) all, IIRC, compilation does with optimization enabled is remove assert and if __debug__: statements. Oh, and docstrings. So yeah... slightly. To put it mildly. (Note that with this "benchmark", PyPy has (almost) no difference in runtime between the abstracted and non-abstracted versions.)