X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Date: Fri, 13 Jul 2012 15:31:58 -0700 From: Colin D Bennett To: geda-user AT delorie DOT com Subject: Re: [geda-user] Question/advise/suggestion on gschem 'undo' Message-ID: <20120713153158.118f8568@svelte> In-Reply-To: <20120713192118.3132.qmail@stuge.se> References: <20120713122112 DOT 3247247ee710b39349b6bc74 AT jcoppens DOT com> <20120713192118 DOT 3132 DOT qmail AT stuge DOT se> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator297.hostgator.com X-AntiAbuse: Original Domain - delorie.com X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gibibit.com X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (svelte) [67.160.113.82]:43452 X-Source-Auth: colin AT gibibit DOT com X-Email-Count: 1 X-Source-Cap: c2t5bGVuO3NreWxlbjtnYXRvcjI5Ny5ob3N0Z2F0b3IuY29t 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 Fri, 13 Jul 2012 21:21:18 +0200 Peter Stuge wrote: > John Coppens wrote: > > To my surprise the number of levels of undo was very limited. > .. > > (undo-levels 10) > .. > > Are the resources necessary for undo levels so large? > > I would also like to know this. > > > > Would it be a problem to have, say, 100 or even 500 undo levels? > > Make that 50000, or simply infinite in a linked list. > > How are actions stored in memory? > > > //Peter It would probably make sense to limit the actual memory consuption as well. For instance, the GIMP has the following two items under Preferences > Environment > Resources Consumption: Minimal number of undo level: 5 Maximum undo memory: 64 megabytes There are always at least 5 (in this case) undo levels, but as many as can fit in 64 MB (according to current setting) will be saved. This is a great solution. Regards, Colin