title: Multiple small mallocs vs one big malloc
body: <p>The task is to parse a binary file into memory. However, I don't know a priori the amount of memory needed to allocate.</p>
  
  <p>Which method has shown to be preferable: doing multiple small mallocs as I progress in the parsing routine or, first traverse the file in order to decide the amount of memory needed, and then parse again?</p>
  
  <p>Any hint is appreciated.</p>