Skip to content
Snippets Groups Projects
  1. Oct 25, 2013
    • Tomasz Grabiec's avatar
      cpio: reduce memory pressure · 9ee4a63e
      Tomasz Grabiec authored
      
      The current implementation was copying the whole file contents into an
      array and then into stringstream which under the hood copied it again
      into even bigger array. These allocations were causing memory
      fragmentation which some times led to malloc failure.
      
      The new approach is using fixed amount of memory. For each file it
      wraps the cpio input stream in a restricted stream which limits the
      amount of data that can be read from it so that it represents a view
      for only that file's data. After the consumer has read it we simply
      ignore the remaining padding from the cpio stream.
      
      This fixes issue #66
      
      Signed-off-by: default avatarTomasz Grabiec <tgrabiec@cloudius-systems.com>
      9ee4a63e
  2. Oct 24, 2013
  3. Oct 23, 2013
  4. Oct 22, 2013
Loading