X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Date: Sun, 6 Sep 2015 14:31:13 +0200 (CEST) X-X-Sender: igor2 AT igor2priv To: "Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-user AT delorie DOT com]" X-Debug: to=geda-user AT delorie DOT com from="gedau AT igor2 DOT repo DOT hu" From: gedau AT igor2 DOT repo DOT hu Subject: Re: [geda-user] gschem question about internals In-Reply-To: <20150906095607.GH2637@localhost.localdomain> Message-ID: References: <20150905202843 DOT GB7185 AT localhost DOT localdomain> <20150906095607 DOT GH2637 AT localhost DOT localdomain> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 On Sun, 6 Sep 2015, Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-user AT delorie DOT com] wrote: > On Sun, Sep 06, 2015 at 05:38:48AM +0200, gedau AT igor2 DOT repo DOT hu wrote: > ... >> About the original question from yesterday: I was more interested in whether >> there is a hash of refdes -> OBJECT, or anything like that, being constantly >> maintained by gschem. Or whenever gshcem is looking for something, does it >> do linear searches on the lists of pages and objects? > Yes, in most C functions it is done this way, AFAIR. Thank you. For the patch operation I end up building a temporary hash using such a loop.