This is an interesting query, since it doesn't seem to be a concern of many
(any other?) people.  This may seem strange, but would you care to elaborate
by explaining what your definition of a page fault is, and why you are
concerned about them?  What tool are you using to measure paging operations?



-----Original Message-----
From: Shlomi Afia
To: '[EMAIL PROTECTED]'
Sent: 8/19/01 8:47 AM
Subject: HELP! Page faults, when running DOMParser on windows NT

Hi there,
This is a second call :),
I'm running this simple test program on Windows NT 4,  using xerces
version
1.3.0 build with Visual C++:

int main(int argc, char* argv[])
{
        char buffer[5000];

        XMLPlatformUtils::Initialize();
        DOMParser* parser = new DOMParser;

        FILE* stream = fopen("D:\\Temp\\test.xml", "r"); 
        int bufferSize = fread(buffer, sizeof(char), 5000, stream);
        fclose(stream);

        while (true)
        {
                MemBufInputSource memBuff((XMLByte*)buffer, bufferSize,
"");
                parser->parse(memBuff);
                Sleep(10);
        }

        delete parser;
        return 0;
}

To my surprise, calling DOMParser::parse creates a lot of memory page
faults! (the test.xml file is less then 5000 bytes). What am I doing
wrong?
How can I eliminate these  horrible page faults, my DOMParser creates? 

thanks,
Shlomi.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to