SAX based XML parser
Dependents: giken9_HTMLServer_Temp_Sample
Revision 1:e96b2af301dd, committed 2011-05-26
- Comitter:
- andrewbonney
- Date:
- Thu May 26 10:03:14 2011 +0000
- Parent:
- 0:07919e3d6c56
- Commit message:
- Update to reduce buffer sizes
Changed in this revision
expatpp.cpp | Show annotated file Show diff for this revision Revisions of this file |
xmlparse.c | Show annotated file Show diff for this revision Revisions of this file |
diff -r 07919e3d6c56 -r e96b2af301dd expatpp.cpp --- a/expatpp.cpp Fri Apr 08 09:18:41 2011 +0000 +++ b/expatpp.cpp Thu May 26 10:03:14 2011 +0000 @@ -25,7 +25,7 @@ #ifndef BUFSIZ - #define BUFSIZ 4096 + #define BUFSIZ 256 // Was 4096 #endif expatpp::expatpp(bool createParser) :
diff -r 07919e3d6c56 -r e96b2af301dd xmlparse.c --- a/xmlparse.c Fri Apr 08 09:18:41 2011 +0000 +++ b/xmlparse.c Thu May 26 10:03:14 2011 +0000 @@ -134,11 +134,11 @@ } HASH_TABLE_ITER; #define INIT_TAG_BUF_SIZE 32 /* must be a multiple of sizeof(XML_Char) */ -#define INIT_DATA_BUF_SIZE 1024 +#define INIT_DATA_BUF_SIZE 256 // Was 1024 #define INIT_ATTS_SIZE 16 #define INIT_ATTS_VERSION 0xFFFFFFFF -#define INIT_BLOCK_SIZE 1024 -#define INIT_BUFFER_SIZE 1024 +#define INIT_BLOCK_SIZE 256 // Was 1024 +#define INIT_BUFFER_SIZE 256 // Was 1024 #define EXPAND_SPARE 24