[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Static pools?

From: Matthew Hambley <matthew_at_aether.demon.co.uk>
Date: 2003-03-09 22:02:00 CET

In message <20030308232656.A13671@lyra.org>
          Greg Stein <gstein@lyra.org> wrote:

> On Sat, Mar 08, 2003 at 06:17:51PM +0000, Matthew Hambley wrote:
> >...
> > Simple. I want to create a mapping table which needs to exist between
> > calls to the interrogation function. This involves parsing a file. I
> > could parse the file every time the data needs to be interrogated (and
> > of course that is what I will need to do if there isn't space to build
> > the table) but that would require a lot of file access and a lot of
> > time. Better to do it as infrequently as possible.
>
> I'm not clear on why you don't just malloc the thing? If you want memory
> from the heap, and want it for the duration of the process, then just use
> malloc. I'm not sure that a pool will buy you anything.

Again, simple. I get a strong "malloc bad, apr_palloc good" vibe from this
project.

-- 
(\/)atthew )-(ambley ---------------\ If something's worth doing it's worth
E-mail : matthew@aether.demon.co.uk  \ doing badly until you can learn to
Public key : C991137B                 \ do it well.
Web : http://www.aether.demon.co.uk/   \-----------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Mar 9 22:03:25 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.