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

Re: Why passing a pool to a printf?

From: Nicolßs Lichtmaier <nick_at_reloco.com.ar>
Date: 2004-05-18 04:11:00 CEST

>>Why not creating and destroying a pool with each printf?
>>
>>
>
>Creating and destroying a pool is moderately expensive.
>
>Also, we don't like creating pools entirely from scratch. This way, the
>printf implementation can allocate memory and not worry about cleaning
>it up if it has to error out.
>
>

Oh, I see...

Would it be overkill to maintain a hashtable with pools, with one pool
per thread? =)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue May 18 04:11:16 2004

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