While performance testing, we found that modifying the Windows critical section spin count improved performance. The c-treeACE Server for Windows now supports an option to set the spin count for c-treeACE critical sections. The keyword CRITICAL_SECTION_SPIN <spin_limit> causes c-treeACE to set the spin count for all its critical sections to the specified value. The critical section spin option defaults to 1000.
A c-treeACE configuration keyword is available to modify this value:
CRITICAL_SECTION_SPIN <spin_limit>
Only Windows versions supporting the CriticalSectionAndSpinCount() function (0x403 or greater) have this feature enabled.