Mail Archives: geda-user/2015/09/11/06:12:04
Markus Hitter wrote:
> The new code will give layers a type.
Great to see work done on the layer infrastructure!
Currently, pcb on my desktop seems to be limited by a combination of
processor speed and memory speed. (Found out the hard way after memory
failure and temporarily replacement with old slow memory.) I guess, this
is in part due to the application inefficiently iterating over layers and
objects over and over.
> These types exist (see hid.h and strflags.c):
>
> "copper", /* LT_COPPER */
> "silk", /* LT_SILK */
(...)
These are exclusive, are they?
> "invisible", /* LT_INVISIBLE */
What is the use case for invisible? What process should (not) see this
layer?
> To iterate through all layers of a specific type, there's now a
> comfortable macro. For example to loop over all paste layers:
>
> LAYER_TYPE_LOOP (PCB->Data, max_copper_layer + SILK_LAYER, LT_PASTE)
> do_something_with (layer);
> layer_number_is (n);
> END_LOOP;
I imagine, this there is a potential for increased speed, if common layer
selections were calculated and cached in advance.
Again, great to see things on the move!
---<)kaimartin(>---
--
Kai-Martin Knaak tel: +49-511-762-2895
Universität Hannover, Inst. für Quantenoptik fax: +49-511-762-2211
Welfengarten 1, 30167 Hannover http://www.iqo.uni-hannover.de
GPG key: http://pgp.mit.edu:11371/pks/lookup?search=Knaak+kmk&op=get
- Raw text -