Subject | RE: [IB-Architect] Next ODS change (was: System table change) |
---|---|
Author | Ann Harrison |
Post date | 2000-11-07T23:24:53Z |
>* 10% CPU time for checksums! Wow. I'd suggest a simpler checksumFor the record, I had nothing to do with identifying the problem
>algorythm <grin>, but your idea of getting rid of them entirely is probably
>better yet.
or recommending a solution. The algorithm is pretty simple:
....
old_checksum = page->pag_checksum;
page->pag_checksum = 0;
p = (ULONG*) page;
checksum = 0;
do
{
checksum += *p++;
checksum += *p++;
checksum += *p++;
checksum += *p++;
checksum += *p++;
checksum += *p++;
checksum += *p++;
checksum += *p++;
}
while (p < end);
page->pag_checksum = old_checksum;
....
Regards,
Ann