Skip to content

Upward-align DateStrLen to a 4-byte boundary #2238

@wkliao

Description

@wkliao

Parameter DateStrLen is used to define a variable named "Times" in the output file.
Its value is currently set to 19. Below shows one of the places from a quick keyword search.

integer, parameter :: DateStrLen = 19

As a PnetCDF developer, I recommend to increase its size to 20, which is upward-aligned to the
next 4-byte boundary. In netCDF files, the file space occupied by variables all begin with
an offset aligned to a 4-byte boundary. Increasing DateStrLen from 19 to 20 can avoid
creating an non-contiguous I/O pattern, i.e, a single byte gap from the next variable, and
thus improve I/O performance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions