Slashdot Mirror


Project Aims For 5x Increase In Python Performance

cocoanaut writes "A new project launched by Google's Python engineers could make the popular programming language five times faster. The project, which is called Unladen Swallow, seeks to replace the Python interpreter's virtual machine with a new just-in-time (JIT) compilation engine that is built on LLVM. The first milestone release, which was announced at PyCon, already offers a 15-25% performance increase over the standard CPython implementation. The source code is available from the Google Code web site."

1 of 234 comments (clear)

  1. Re:It all depends by master_p · · Score: 1, Flamebait

    (Somewhat ironically, some of the worst performance bottlenecks in this app had to do with the overhead of some of the STL containers, which I ended up having to replace with C-style arrays, etc. to get best performance.)

    I smell bullshit. There is no overhead from using STL containers.

    If you used an std::list or an std::map for random access, then you certainly had a bottleneck, because those containers are not for random access.

    If you used an std::vector, you couldn't have a bottleneck, for the simple reason that the std::vector is an array.