X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=o3qW4vBjtnOcyllsifWg+su4fQWCLygPaGLN+bU1coI=; b=ogXKFSK1tpWDziEaEsg0w3bV9WZ4hszii/wy8VbXmamB28tGL7WsmIydKdW/J+xlTp CUrXvmh1spcQE+93E7/7IaWxftAKf8nSfQ1IYUV004UKrdwEsN3kTESg/sYWlGsqKZxF J2ppoQb8xQsFhgzukPIu6QZ/wNXJyUPpirFK/Oki86kKRX15J1yqg9lGIFM9FCn4Lok1 WVy3SjMP/5Lhy62+Yqnbf1a27ZcATwFoWsWn7YAhzULJ/AHAqeCATp48EjRY8wl9z2ir fd2cL96P23tbGK+14nCeMo4nNC8BluNgDhKZWxEQRrxaZ4lsQ3tZXEESttOfAINgdIIJ lUgg== X-Received: by 10.194.122.162 with SMTP id lt2mr35682971wjb.46.1441810960324; Wed, 09 Sep 2015 08:02:40 -0700 (PDT) Date: Wed, 9 Sep 2015 17:02:38 +0200 From: "Nicklas Karlsson (nicklas DOT karlsson17 AT gmail DOT com) [via geda-user AT delorie DOT com]" To: geda-user AT delorie DOT com Subject: Re: [geda-user] [OT] looking for a PADS layout person (GERBER --> PCB) Message-Id: <20150909170238.312a4ee68ffdcd6beb2b4a11@gmail.com> In-Reply-To: References: <1509040703 DOT AA09605 AT ivan DOT Harhan DOT ORG> <20150904192626 DOT e7e840eed7bf8e2e3e418f79 AT gmail DOT com> <20150909092512 DOT b2354e50a1028463c8f819bd AT gmail DOT com> <20150909113706 DOT 30b44e944c08b590f146d9f2 AT gmail DOT com> X-Mailer: Sylpheed 3.5.0beta1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > If you don't do it in the core but in the gerber exporter (which is imo > much simpler), you need to build the same catalogue, but only once, when > you start, and you don't need to delete from it ever, just delete the > whole thing at the end of the export. So no reference counting, just an > index of shapes alerady seen. Probably something like this is already > happening for line widths and/or hole sizes. For me implementing it in the exporter seems to be the correct place for it. I discovered several times that functions called only once is equally hard to implement as functions called regularly. I also discovered several times smaller components actually could be more expensive.