diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-05-17 21:45:50 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-05-17 21:45:50 +0000 |
commit | 326125aee0b8cd807a6a1d158398078ff6bfb1e1 (patch) | |
tree | 01ce1ba9d6b551ac621c73276eeb23268d315f43 /src/fstring.h | |
parent | e0e7932a122614a0ff566fbfd8de5776de8b9f6d (diff) | |
download | libbu++-326125aee0b8cd807a6a1d158398078ff6bfb1e1.tar.gz libbu++-326125aee0b8cd807a6a1d158398078ff6bfb1e1.tar.bz2 libbu++-326125aee0b8cd807a6a1d158398078ff6bfb1e1.tar.xz libbu++-326125aee0b8cd807a6a1d158398078ff6bfb1e1.zip |
As evidenced by my latest test, the Bu::FString copy is actually slower than
the std::string copy by a rather large margin. This seems very odd, so I'm
going to do a few tests, the first one is stripping out the FString shared
pointer stuff and seeing if that makes an appreciable difference.
Diffstat (limited to '')
-rw-r--r-- | src/fstring.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fstring.h b/src/fstring.h index f738f63..43033b8 100644 --- a/src/fstring.h +++ b/src/fstring.h | |||
@@ -7,6 +7,8 @@ | |||
7 | #include "archive.h" | 7 | #include "archive.h" |
8 | #include "hash.h" | 8 | #include "hash.h" |
9 | 9 | ||
10 | #define min( a, b ) ((a<b)?(a):(b)) | ||
11 | |||
10 | namespace Bu | 12 | namespace Bu |
11 | { | 13 | { |
12 | template< typename chr > | 14 | template< typename chr > |
@@ -131,7 +133,7 @@ namespace Bu | |||
131 | appendChunk( pNew ); | 133 | appendChunk( pNew ); |
132 | } | 134 | } |
133 | 135 | ||
134 | void append( const chr cData ) | 136 | void append( const chr &cData ) |
135 | { | 137 | { |
136 | append( &cData, 1 ); | 138 | append( &cData, 1 ); |
137 | } | 139 | } |