Drawing module slowness

This is mainly meant to be a “note to self”, as I need to step out for a bit, but this morning I’ve been looking into Drawing and figured out where the slowness on starting the module comes from. Currently, QGraphicsItemSVGTemplate::load() taking a lot of time (~20 seconds on my machine, with FreeCAD in a debugger), and being called twice with the same filename on opening a document by ViewProviderDrawingPage::showDrawingView(); once through:

view = new DrawingView(this, doc, Gui::getMainWindow());

and once through:

view->updateTemplate(true); (which is DrawingView::updateTemplate() )

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s