logilab-astng #18311 pylint is slower with astng 0.19.1 [rejected]
With logilab-astng 0.19.1, pylint is significantly slower when dealing with multiple files at a time. The following tests use pylint 0.18.0 and logilab-astng 0.19.1 and logilab-astng 0.19.0, but the effect is also very obvious with pylint 0.18.1. Timing values on one of my projects: $ time ~/tmp/pylint-0.18.0-0.19.0/bin/pylint -r n [A-F]*py > /dev/null No config file found, using default configuration real 0m11.053s user 0m10.673s sys 0m0.340s $ time ~/tmp/pylint-0.18.0-0.19.1/bin/pylint -r n [A-F]*py > /dev/null No config file found, using default configuration real 0m17.977s user 0m17.549s sys 0m0.412s $ ls [A-F]*py | wc -l 12 The time for 0.19.1 shows significant growth - for 14 files, the times are 12s for 0.19.0, but 22s for 0.19.1, and for all 16 files, 14s versus 50s. Memory usage for pylint with 0.19.1 seems larger as well (based on watching top), but I haven't measured that accurately, The project in question uses gtk quite extensively, which may be a factor in triggering this bug - the slowdown is less noticeable on my non-gtk projects. | |
priority | important |
---|---|
type | bug |
done in | 0.19.2 |
load | 0.000 |
load left | 0.000 |
closed by | <not specified> |
similar entities
Comments
-
2009/11/25 11:03, written by drnlmza
-
2009/11/25 18:47, written by pydavid
-
2010/01/14 13:29
add commentTwo additional notes.
I've found that the gtk examples are a good test case for demonstrating this bug.
There is a memory leak involved as well - trying to run pylint on Sutekh (http://sutekh.wiki.sourceforge.net/), a pygtk project I'm involved in, crashes with a MemoryError using 0.19.1.
I tried pylint on Sutekh.
With 0.19.1 I confirm your observation as it took 5155 seconds.
With 0.19.0 I wasn't able to test as this release is broken.
With Mercurial tip it run fine in 77 seconds.
Debian bug report was closed as unreproduceable with 0.19.3.