Hi Ales, On Dienstag, 19. Februar 2008, Ales Hvezda wrote: > > Note: The search for new connections is a linear search over all > > objects whenever the mouse is moved. I'm not sure if it's fast > > enough for large circuits. > > Just a quick note. Yeah, it might not be fast enough if it has to > search the entire schematic. > > The tiling mechanism inside libgeda was designed just for this > purpose. With the tiling mechanism you can look only for objects that > either in the current tile (based on the mouse position) or nearby > tiles. Does this functionality (original patch) use the tile > mechanism?
No. I've added some code to only check visible objects. This reduced the load as you have not to dive into complex objects. On a schematic with lots of connectors placed I had about 50000 object iterations in the net search code before the visibility check. In normal use, you only connect nets when you zoomed in a little bit the visibility ckeck reduced the iterations to 2000-5000 objects. > Either way, I'll try your changes on my pokey machine on something > large and see what happens. :) Thanks. Regards Werner _______________________________________________ geda-dev mailing list [email protected] http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev
