Re: svn commit: rev 300 - trunk/subversion/include trunk/subversion/libsvn_subr trunk/subversion/tests/libsvn_subr
From: Greg Stein <gstein_at_lyra.org>
Date: 2001-10-24 23:34:46 CEST
On Wed, Oct 24, 2001 at 11:19:24AM -0500, cmpilato@tigris.org wrote:
With new functions, can we get them to use "const svn_string_t *" ??
Continuing to use stringbuf for stuff like this is just going to increase
>...
No need for unsigned, is there? And const is kinda weird for a pass-by-value
> +{
If you do:
static const other[] = "...";
Then you won't have to copy the contents on function entry(!!), and the size
>...
That sizeof() is going to include the null-term because of the above
However, it would probably be faster to do:
if (strchr("...", c) != NULL)
>...
Note that sprintf() can be dog-slow on some boxes. For simple formatting, it
>...
Why that whole unsigned again? Note that str->data is (possibly) signed.
>...
And that unsigned stuff again :-)
Cheers,
-- Greg Stein, http://www.lyra.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Sat Oct 21 14:36:45 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.