Ismael Velasco - Jan 25, 2019:
By faster, the identical operation for the exact same bot on a Mac and on Windows was 30-50 times(!) faster on MacOS than on Windows, even though the XPS 15 PC had much more powerful physical specs. We actually timed it. I saw someone on Stack Overflow reported 30 times slower on Windows.
Is this because it is harder for Windows to compile C++? Or because of different architectures under the hood? Always been curious. Not compared MacOS with Linux on PC yet.
I may have some good news on this front (for Windows users).
After receiving the initial responses to my question here, we conducted some time trials and had results similar to what you report. For example, running :build 0 took about 22 s on a MacBook Pro and about 4 minutes on a roughly comparable Windows laptop.
Curious about the huge discrepancy, one of our hardware engineers did some profiling and found the real culprit to be the anti-virus software. Disabling the real-time virus protection feature of Windows Defender brought the 4 minutes down to 14 seconds! Even keeping Windows Defender active, but excluding the ChatScript-master folder solved much of the slowdown problem, resulting in about 20 s for :build 0 to complete.
Another team member with a different Windows set-up observed similar improvements after disabling Norton and Cortana.
So, while I don’t doubt that Bruce Wilcox speaks with authority when he says ChatScript is faster not on Windows, :) our experiments suggest that much of the performance problem (at least for some use cases) can be resolved by adjusting anti-virus protection.