[Qgis-developer] QgisLogger can be a serious bottleneck
Jürgen E. Fischer
jef at norbit.de
Sat Jul 5 03:31:01 PDT 2014
On Sat, 05. Jul 2014 at 10:27:24 +0200, G. Allegri wrote:
> As I reported in a previous post, I was unable to conclude a difference
> operation on a vector because the tool was running in exponential time.
> Debugging pointed me to the problem: QgsVectoFileWriter was logging tons of
> empty geometres with an incompatible type which will be discarded.
> After commenting the line of logging the process completed in linear time.
> Shouldn't we offer the opportunity to turn QgsLogger off? This would let
> the user/developer to switch it off whenever he already knows what's
> Is it already there and I missed it?
What error message did you get and wouldn't it be better to kill them where it
origins or to issue a final "%n empty geometries skipped" instead of logging
Alternatively we could issue a "last message repeated %n times" in message log
to make it behave better - although that only works the error message are
Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50
Software Engineer D-26506 Norden http://www.norbit.de
QGIS release manager (PSC) Germany IRC: jef on FreeNode
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502
More information about the Qgis-developer