python-mode is sluggish on some files

Bug #957690 reported by Benjamin Peterson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
High
Andreas Roehler

Bug Description

This file takes nearly a minute to load with trunk python-mode: http://hg.python.org/cpython/file/tip/Lib/test/test_descr.py

Changed in python-mode:
assignee: nobody → Andreas Roehler (a-roehler)
milestone: none → 6.0.6
importance: Undecided → Medium
Changed in python-mode:
status: New → Confirmed
Changed in python-mode:
status: Confirmed → In Progress
importance: Medium → High
Revision history for this message
Andreas Roehler (a-roehler) wrote :

can you try again? thanks

Changed in python-mode:
status: In Progress → Fix Committed
Revision history for this message
Benjamin Peterson (benjaminp) wrote :

Still takes more than minute.

Revision history for this message
Barry Warsaw (barry) wrote :

Yep, this is killing me too.

For example:

bzr branch ubuntu:ubiquity
cd ubiquity
C-x C-f ubiquity/plugins/ubi-partman.py

Takes 16s to load on a fairly beefy machine. I'm on r904.

Changed in python-mode:
status: Fix Committed → New
Changed in python-mode:
status: New → In Progress
Revision history for this message
Benjamin Peterson (benjaminp) wrote :

The responsible revision seems to be r886.

Revision history for this message
Andreas Roehler (a-roehler) wrote : Re: [Bug 957690] Re: python-mode is sluggish on some files

Am 29.03.2012 05:15, schrieb Benjamin Peterson:
> The responsible revision seems to be r886.
>

thx, changed something with resp. to hooks, commit next days.
The major delay is caused by recursive imenu-function.
needs some time to write that differently.

Disabling imenu should speed up things meanwhile.

Revision history for this message
Mahmoud Abdelkader (mahmoudimus) wrote :

Yes, I've noticed

(setq py-imenu-create-index-p nil)

vastly improves performace in python-mode

Changed in python-mode:
milestone: 6.0.6 → 6.0.7
Revision history for this message
Andreas Roehler (a-roehler) wrote :

please re-open, if not done

Changed in python-mode:
status: In Progress → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.