[sword-svn] r1722 - trunk/include
jansorg at crosswire.org
jansorg at crosswire.org
Sun Feb 20 16:32:22 MST 2005
Author: jansorg
Date: 2005-02-20 16:32:22 -0700 (Sun, 20 Feb 2005)
New Revision: 1722
Modified:
trunk/include/swbuf.h
Log:
SWBuf improvements by scribe; searching is a lot faster now
Modified: trunk/include/swbuf.h
===================================================================
--- trunk/include/swbuf.h 2005-02-18 08:21:04 UTC (rev 1721)
+++ trunk/include/swbuf.h 2005-02-20 23:32:22 UTC (rev 1722)
@@ -50,7 +50,7 @@
inline void assureMore(signed long pastEnd) {
if (endAlloc-end < pastEnd) {
long newsize = (end-buf)+pastEnd;
- allocSize = newsize + 16;
+ allocSize = newsize + 128;
long size = (end - buf);
buf = (char *)((buf) ? realloc(buf, allocSize) : malloc(allocSize));
end = (buf + size);
@@ -60,7 +60,7 @@
}
inline void assureSize(unsigned long newsize) {
if (newsize > allocSize) {
- allocSize = newsize + 16;
+ allocSize = newsize + 128;
long size = (end - buf);
buf = (char *)((buf) ? realloc(buf, allocSize) : malloc(allocSize));
end = (buf + size);
More information about the sword-cvs
mailing list