www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/09/11/06:12:04

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: geda-user AT delorie DOT com
From: Kai-Martin Knaak <knaak AT iqo DOT uni-hannover DOT de>
Subject: Re: [geda-user] Notice to developers: layers have now a type.
Date: Fri, 11 Sep 2015 12:10:59 +0200
Organization: Institut =?UTF-8?B?ZsO8cg==?= Quantenoptik
Lines: 58
Message-ID: <msu9bk$u37$1@ger.gmane.org>
References: <55F1F75F DOT 8010809 AT jump-ing DOT de>
Mime-Version: 1.0
X-Complaints-To: usenet AT ger DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: 130.75.102.197
User-Agent: KNode/4.14.1
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t8BABLOJ026902
Reply-To: geda-user AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019