[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gEDA-dev: PCB speedup



Hi!

I was profiling PCB from CVS today and I've found that in copy.c, in
functions
 CopyVia()
 CopyLine()
 CopyArc()
 CopyText()
 CopyPolygon()
 CopyElement()
Draw() is called. Later on, CopyPastebufferToLayout() uses these functions
and calls Draw() at the end. I may be wrong, but it seems to me that
Draw() shouldn't be called in all those Copy functions. I went on
removing those calls, and pasting a small circuit became very fast
(can't feel it takes time, compared to the 25-50 seconds without
Draw() calls commented out).

I played with the modified version and it seems removing those
Draw() calls don't mess up anything. Could someone comfirm those calls are
not necessary? 

Igor2




_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev