Skip to content

Commit

Permalink
Bump the ros3 VFD cache to 16 MiB (HDFGroup#3759)
Browse files Browse the repository at this point in the history
  • Loading branch information
derobins authored and jhendersonHDF committed Oct 24, 2023
1 parent 27ca945 commit 5093382
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions release_docs/RELEASE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ New Features

Library:
--------
- Added a simple cache to the read-only S3 VFD
- Added a simple cache to the read-only S3 (ros3) VFD

The read-only S3 VFD now caches the first N bytes of a file stored
in S3 to avoid a lot of small I/O operations when opening files.
This cache is per-file and created when the file is opened.

N is currently 4kiB or the size of the file, whichever is smaller.
N is currently 16 MiB or the size of the file, whichever is smaller.

Addresses GitHub issue #3381

Expand Down
2 changes: 1 addition & 1 deletion src/H5FDros3.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#define ROS3_STATS 0

/* Max size of the cache, in bytes */
#define ROS3_MAX_CACHE_SIZE 4096
#define ROS3_MAX_CACHE_SIZE 16777216

/* The driver identification number, initialized at runtime
*/
Expand Down

0 comments on commit 5093382

Please sign in to comment.