Hi !
I have created a SAX2 parser that reads in a large number of XML files, the
code is below, it works fine but for each file it gets slower, even if I use
100 copies of the same file it starts to get slow after 20-30 files, it
slows down with about 100ms for each files, so the first files is completed
in 200ms, the next in 300ms and so on.
Is there anything I need to reset or something like that between each
parse() ?
Mikael
if(( hFind = FindFirstFile( temp, &find)) != INVALID_HANDLE_VALUE)
{
do
{
if(( find.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0)
{
char tmp[ 256];
if( *find.cFileName != '.')
{
sprintf( tmp, "%sCONFIGURATION\\%s\\TAGS.XML", W2A( szSysPath), W2A(
find.cFileName));
CTagHandler handler;
parser->setContentHandler( &handler);
parser->setErrorHandler( &handler);
parser->parse( tmp);
}
}
} while( FindNextFile( hFind, &find));
FindClose( hFind);
hFind = NULL;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]