title: C++ program runs much slower on Windows vs Linux when doing file operations?
body: <p>I use an open source project called <a href="https://github.com/bwilcox-1234/ChatScript" rel="nofollow noreferrer">ChatScript</a> for natural language processing app development.</p>
  
  <p>When you execute a <em>build</em> operation with ChatScript, it scans all the script files that comprise your chat-bot. In my case, that's hundreds of files. This process takes nearly <strong>30 times</strong> longer on <em>Windows 8.1</em> than it does on <em>Ubuntu 16.04</em>.  Therefore I <em>do</em> use Linux for much of my work, but there is a part of my work that I have to do on <em>Windows</em> because of certain associated tools, so I would like to modify the code base so that <em>Windows</em> ChatScript compiles are as fast as on Linux.</p>
  
  <p>Can anyone think of a reason the code would run so much slower on <em>Windows</em> vs. <em>Linux</em>? Are there some C++ file operation codes (read/write/etc.) that are known to be <strong>much</strong> slower on <em>Windows</em> compared to <em>Linux</em> due to variances in the C++ run-time libraries running on each platform?</p>