Skip to content
  • Mark OLESEN's avatar
    STYLE: reorder/refactor stream format options · 4cf932b2
    Mark OLESEN authored
    - IOstreamOption class to encapsulate format, compression, version.
      This is ordered to avoid internal padding in the structure, which
      reduces several bytes of memory overhead for stream objects
      and other things using this combination of data.
    
      Byte-sizes:
          old  IOstream:48  PstreamBuffers:88  Time:928
          new  IOstream:24  PstreamBuffers:72  Time:904
    
    ====
    
    STYLE: remove support for deprecated uncompressed/compressed selectors
    
    In older versions, the system/controlDict used these types of
    specifications:
    
        writeCompression uncompressed;
        writeCompression compressed;
    
    As of DEC-2009, these were deprecated in favour of using normal switch
    names:
    
        writeCompression true;
        writeCompression false;
        writeCompression on;
        writeCompression off;
    
    Now removed these deprecated names and treat like any other unknown
    input and issue a warning. Eg,
    
       Unknown compression specifier 'compressed', assuming no compression
    
    ====
    
    STYLE: provide ...
    4cf932b2