--- parser3/src/targets/cgi/parser3.C 2002/02/18 12:45:46 1.159 +++ parser3/src/targets/cgi/parser3.C 2002/03/05 07:48:07 1.163 @@ -4,7 +4,7 @@ Copyright(c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) - $Id: parser3.C,v 1.159 2002/02/18 12:45:46 paf Exp $ + $Id: parser3.C,v 1.163 2002/03/05 07:48:07 paf Exp $ */ #include "pa_config_includes.h" @@ -29,6 +29,15 @@ #endif //#define DEBUG_POOL_MALLOC +//#define DEBUG_STRING_APPENDS_VS_EXPANDS + +#ifdef DEBUG_STRING_APPENDS_VS_EXPANDS +extern ulong + string_piece_appends, + wcontext_result_size, + total_alloc_size, + string_string_shortcut_economy; +#endif // consts @@ -329,7 +338,6 @@ void real_parser_handler( // no path, just filename site_config_path[0]='.'; site_config_path[1]=0; } - char site_config_filespec[MAX_STRING]; snprintf(site_config_filespec, MAX_STRING, "%s/%s", @@ -337,8 +345,8 @@ void real_parser_handler( // process the request request.core( - root_config_filespec, false, - site_config_filespec, false, + root_config_filespec, false /*don't fail_on_read_problem*/, + site_config_filespec, false /*don't fail_on_read_problem*/, header_only); // @@ -348,6 +356,16 @@ void real_parser_handler( extern void log_pool_stats(Pool& pool); log_pool_stats(pool); #endif + +#ifdef DEBUG_STRING_APPENDS_VS_EXPANDS + SAPI::log(pool, + "string piece appends=%lu, wcontext_result_size=%lu, string_string_shortcut_economy_closer=%lu, total_alloc_size=%lu", + string_piece_appends, + wcontext_result_size, + string_string_shortcut_economy, + total_alloc_size); +#endif + } void call_real_parser_handler__do_SEH(