Comments (2)
Thank you for raising @vyasr !
I have spent some time exploring the importance of cudf's NativeFile
dependency. In theory, we should be able to achieve the same performance without it. We are not actually using arrow to transfer any remote data at all unless the user specifically opens their file(s) with the pyarrow filesystem API. Instead, we are just using arrow as a translation layer between our python-based fsspec file and something that is recognized by libcudf as a proper data source.
If we were to change the python code to stop relying on NativeFile
today, we could probably optimize the existing use_python_file_object=False
logic to avoid a significant run-time regression. The only necessary regression (besides losing support for pyarrow filesystems) would be an increase in host-memory usage during partial IO. This is because we would need to pass down a byte range to libcudf that "looks" like an entire file (even if we are only reading a single column, and most of the bytes are left "empty").
Near-term Solution: In order to avoid excessive host-memory usage in the near term, we could probably introduce some kind of "sparse" byte-range data-source to libcudf. It is fairly easy to populate a mapping of known byte ranges efficiently with fsspec. If these known byte ranges could be used to populate a structure that is understood as a file-like object by libcudf, then we can avoid the host-memory issue.
(Possible) Long-term Solution: We roll our own filesystem API at the cpp level and avoid all python-related performance concerns :)
from cudf.
from cudf.
Related Issues (20)
- [BUG] Converting from floating point types to fixed point types does not consider `NaN` and `inf`
- [BUG] Converting from numeric types to fixed point types does not handle underflow/overflow HOT 5
- [FEA] Refactoring JSON reader tree algorithms in 24.08 HOT 2
- [BUG] The dtype is changed unexpectly for `cudf.pandas` DataFrame. HOT 6
- [FEA] Replace internal usage of std::string with std::string_view HOT 2
- [DOC] add cudf to database-like ops benchmark? HOT 1
- [QST] Importing cudf in Jupyter notebook gives error HOT 6
- [BUG] Integer overflow errors in JSON reader when total source size exceeds `INT_MAX` bytes
- [FEA] Support large strings in `to_pandas`
- [FEA] Support read_fwf functionality in cudf HOT 3
- cudf can't detect my GPU: cudf.numba.cuda.cudadrv.driver.CudaAPIError: [500] Call to cuInit results in CUDA_ERROR_NOT_FOUND HOT 3
- [BUG] The `ndarray` wrapper in `cudf.pandas` doesn't have `__array_interface__`.
- [FEA]: Finish documentation for pylibcudf
- [FEA] Add a column with filenames index in cudf.read_json HOT 3
- [FEA] Support named aggregations in `df.groupby().agg()` HOT 4
- [FEA] Add an ORC reader benchmark that uses multiple CUDA streams HOT 2
- testing issue
- [QST] Running cudf terribly slow HOT 5
- testing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cudf.