Ali Gholami Rudi escribió:
On Aug 12 2008 11:17 +0430, Linos wrote:
Ali Gholami Rudi escribió:
On Aug 12 2008 02:09 +0430, Linos wrote:
Linos escribió:
Hello,
Hi Linos,

    i am using the new released eric4 version 4.2.0 (r2385), i like
this versions, the graphics are clearly more beautiful than before
and i think the highlight of current text and the better rope
integration are great new features, i only have a problem when i try
to save the changes to my script (2432 lines) i have to wait with
the application freezed about 3~4 seconds, i had not this problem
with old 4.1 version, can i fix this problem in any way? I have
other question, in the project homepage in donate link i read this
message about donations:

Well it seems that disable rope autocompletion and calltips fix the
slow saving file for me, dont know why.
Rope uses static object analysis when saving files (if it is enabled
in eric) but it is quite fast most of the time (at least for not very
large files).  Anyway you can disable it in rope's config.py (but I
don't know were it is located in eric).
wow thanks Ali, it seems definitively a problem with rope, i have
disabled the plugin and i have no problem now saving files, it should
be great know how to fix rope to can use it but almost i can work with
this eric version with rope disabled for now.

You don't need to disable rope completely; you can probably change
rope's config.py (saved somewhere in your project tree) to::

   prefs['automatic_soa'] = False
   prefs['validate_objectdb'] = False

to disable that; tell me if it doesn't work.

Anyway SOA is usually fast; Do your modules contain lots of
from-imports?  If so, maybe rope can optimize its from-imports
handling.  I've noticed this slowdown when testing it with pyopengl in
which usually thousands of names are from-import'ed in module scope.

Regards,
Ali


The file with this settings it is in my machine in
~/.eric4/eric4plugins/RefactoringRope/rope/base/default_config.py, i have 
changed the two
prefs you have pointed me to false and still have the same problem, well before 
the
changes the cpu was at 99 until i close the python project and now it gets 
10~20 seconds
with the cpu at 99% and eric4 gui frozen so still not usable, i have many 
from-imports but
not thousands, the file i am testing the problem with has this lines:

from collections import defaultdict
from platform import system
from PyQt4.QtCore import QSettings, QString, QChar, QObject, QVariant, SIGNAL, 
QDate,
QStringList, QTimer, QTime
from PyQt4.QtSql import QSqlDatabase, QSqlQuery
from PyQt4.QtGui import QMessageBox
import impresion, util_gui
from database_mod_almacen import MetodosCompartidos

Regards,
Miguel Angel.

_______________________________________________
Eric mailing list
[email protected]
http://www.riverbankcomputing.com/mailman/listinfo/eric

Reply via email to