title: malloc vs mmap in C
body: <p>I built two programs, one using <code>malloc</code> and other one using <code>mmap</code>. The execution time using <code>mmap</code> is much less than using <code>malloc</code>.</p>
  
  <p>I know for example that when you're using <code>mmap</code> you avoid read/writes calls to the system. And the memory access are less.</p>
  
  <p>But are there any other reasons for the advantages when using <code>mmap</code> over <code>malloc</code>?</p>
  
  <p>Thanks a lot</p>