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

RE: cvs commit: httpd-2.0 ROADMAP

From: Sander Striker <striker_at_apache.org>
Date: 2001-12-07 19:49:42 CET

> From: Karl Fogel [mailto:kfogel@newton.ch.collab.net]
> Sent: 07 December 2001 19:42

> "Sander Striker" <striker@apache.org> writes:
> > > > + * Add a string "class" that combines a char* with a length
> > > > + and a reference count. This will help reduce the number
> > > > + of strlen and strdup operations during request processing.
> > >
> > > This doesn't belong in Apache, if anything it is an APR class. BTW,
> > > this has come up multiple times, and everybody seems to be in favor
> > > or if.
> > >
> > > Ryan
> >
> > In subversion svn_string_t was introduced, because it wasn't in APR.
> > It does (AFAIK) exactly what brian describes.
>
> Subversion's `svn_string_t' and `svn_stringbuf_t' don't have reference
> counts...
>
> -Karl

True, and having a refcount would mean they would need to come out of some
global 'pool'. The pool passed in for creation/duplication of the string
merely bumps the refcount and registers a 'string refcount decrease [delete
when zero]' cleanup. At least, that is what pops in my mind at first thought.

Refcounts and pools are hairy... :)

Caching the strlen is a good start though.

Sander

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:51 2006

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.