-
Notifications
You must be signed in to change notification settings - Fork 912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Control whether a file data source memory-maps the file with an environment variable #17004
Conversation
…fea-mmap-env-vars
cpp/src/io/utilities/datasource.cpp
Outdated
{ | ||
if (_map_addr == nullptr) { return false; } | ||
|
||
auto const policy = getenv_or("LIBCUDF_MMAP_REGISTER_ENABLED", std::string{"AUTO"}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a comment: In a future improvement, boolean type handling could be made more flexible by allowing both letter cases and supporting common key words such as "yes", "true", similar to what KvikIO does here.
…fea-mmap-env-vars
…fea-mmap-env-vars
Re-requested reviews because the scope changed (got smaller) since the PR was approved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
/merge |
Description
Adds an environment variable,
LIBCUDF_MMAP_ENABLED
, to control whether we memory map the input file in the data source.Checklist