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

Custom allocators, WAS: RE: svn commit: rev 1718 - trunk/subversion/libsvn_client

From: Sander Striker <striker_at_apache.org>
Date: 2002-04-15 23:03:08 CEST

> From: Greg Stein [mailto:gstein@lyra.org]
> Sent: 15 April 2002 20:15

[...]
> This is why I suspect we may still need per-file pools. Hmm... Maybe
> apply_textdelta really ought to take a working pool.
>
> Or even more extreme: use a custom pool allocator to get around the 8k
> minimum used by the default allocator.

No can do. The API isn't equipped for that. Pools always use the same
(standard) allocator*. The allocator was exported to allow other parts
of APR to benefit from them (bucket allocators). Abstracting them for
pools would mean a severe performance penalty (and it would bring us
almost back at our sms design).

Sander

*) The code is even inlined for performance.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Apr 15 22:57:38 2002

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.