Apache Arrow
h5py
Apache Arrow | h5py | |
---|---|---|
83 | 6 | |
14,854 | 2,105 | |
1.1% | 0.8% | |
9.9 | 9.2 | |
about 18 hours ago | 1 day ago | |
C++ | Python | |
Apache License 2.0 | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Apache Arrow
-
Unlocking DuckDB from Anywhere - A Guide to Remote Access with Apache Arrow and Flight RPC (gRPC)
Apache Arrow : It contains a set of technologies that enable big data systems to process and move data fast
-
Using Polars in Rust for high-performance data analysis
One of the main selling points of Polars over similar solutions such as Pandas is performance. Polars is written in highly optimized Rust and uses the Apache Arrow container format.
-
Kotlin DataFrame ❤️ Arrow
Kotlin DataFrame v0.14 comes with improvements for reading Apache Arrow format, especially loading a DataFrame from any ArrowReader. This improvement can be used to easily load results from analytical databases (such as DuckDB, ClickHouse) directly into Kotlin DataFrame.
- Random access string compression with FSST and Rust
-
Declarative Multi-Engine Data Stack with Ibis
Apache Arrow
-
Shades of Open Source - Understanding The Many Meanings of "Open"
It's this kind of certainty that underscores the vital role of the Apache Software Foundation (ASF). Many first encounter Apache through its pioneering project, the open-source web server framework that remains ubiquitous in web operations today. The ASF was initially created to hold the intellectual property and assets of the Apache project, and it has since evolved into a cornerstone for open-source projects worldwide. The ASF enforces strict standards for diverse contributions, independence, and activity in its projects, ensuring they can withstand the test of time as standards in software development. Many open-source projects strive to become Apache projects to gain the community credibility necessary for adoption as standard software building blocks, such as Apache Tomcat for Java web applications, Apache Arrow for in-memory data representation, and Apache Parquet for data file formatting, among others.
- The Simdjson Library
-
Arrow Flight SQL in Apache Doris for 10X faster data transfer
Apache Doris 2.1 has a data transmission channel built on Arrow Flight SQL. (Apache Arrow is a software development platform designed for high data movement efficiency across systems and languages, and the Arrow format aims for high-performance, lossless data exchange.) It allows high-speed, large-scale data reading from Doris via SQL in various mainstream programming languages. For target clients that also support the Arrow format, the whole process will be free of serialization/deserialization, thus no performance loss. Another upside is, Arrow Flight can make full use of multi-node and multi-core architecture and implement parallel data transfer, which is another enabler of high data throughput.
-
How moving from Pandas to Polars made me write better code without writing better code
In comes Polars: a brand new dataframe library, or how the author Ritchie Vink describes it... a query engine with a dataframe frontend. Polars is built on top of the Arrow memory format and is written in Rust, which is a modern performant and memory-safe systems programming language similar to C/C++.
-
From slow to SIMD: A Go optimization story
I learned yesterday about GoLang's assembler https://go.dev/doc/asm - after browsing how arrow is implemented for different languages (my experience is mainly C/C++) - https://github.com/apache/arrow/tree/main/go/arrow/math - there are bunch of .S ("asm" files) and I'm still not able to comprehend how these work exactly (I guess it'll take more reading) - it seems very peculiar.
The last time I've used inlined assembly was back in Turbo/Borland Pascal, then bit in Visual Studio (32-bit), until they got disabled. Then did very little gcc with their more strict specification (while the former you had to know how the ABI worked, the latter too - but it was specced out).
Anyway - I wasn't expecting to find this in "Go" :) But I guess you can always start with .go code then produce assembly (-S) then optimize it, or find/hire someone to do it.
h5py
-
Essential Deep Learning Checklist: Best Practices Unveiled
How to Accomplish: Use libraries like h5py in Python to convert and store your datasets in HDF5 format. Assess the trade-offs between data precision and storage requirements to determine if 8-bit storage is suitable for your use case.
-
Working with data files too large for RAM
There's some good answers here, but another option I haven't seen suggested: Convert your txt file to HDF5 (Regardless if you follow my approach here, you should really consider converting your data to anything but a txt file). There's a nice library for working with it in python called h5py. The HDF format is designed specifically with working with very large sets of data (it even has compression options), often scientific in nature, but it's not a database. As far as how this fixes the specific issue you you've described, you can utilize numpy slicing to load one chunk your data at a time. Here's a stackoverflow answer which discusses a solution.
-
How to combine multiple numpy arrays stored on disk which are too big to fit in RAM?
If it is a dataset, it should consist of individual instances. You could store these instances in separate files. Otherwise, HDF5 is a very convenient storage format. It allows random read/write access to elements of arrays stored on disk and has excellent Python support in form of the h5py package.
-
Is Python really this slow?
If possible, try to monitor your memory usage during execution and if you see that you are consistently exceeding ~50% (my own rule of thumb, though you may want to discuss this with others as well) of what's available. If you are consistently using most of the available memory, then it's likely worth taking a moment to evaluate whether you can operate on subsets of the data from start to finish, and leave the rest of the data on disk until you are almost ready to use it. Tools like h5py are very helpful in these kinds of situations.
-
Python packages as API end points.
Yea - I really struggled with getting the correct version on h5py to work with both tensorflow and allenai nlp modules. May be its about finding the right version of libraries. Github Issue. I ended up using pickle to save stuff, like John who commented on 26/03/2020 on the same(closed) issue.
-
Tracing and visualizing the Python GIL with perf and VizTracer
Apply these to more issues, like in https://github.com/h5py/h5py/issues/1516
What are some alternatives?
Airflow - Apache Airflow - A platform to programmatically author, schedule, and monitor workflows
Numba - NumPy aware dynamic Python compiler using LLVM
Apache Spark - Apache Spark - A unified analytics engine for large-scale data processing
gil_load - Utility for measuring the fraction of time the CPython GIL is held
FlatBuffers - FlatBuffers: Memory Efficient Serialization Library
per4m - Profiling and tracing information for Python using viztracer and perf, the GIL exposed.
polars - Dataframes powered by a multithreaded, vectorized query engine, written in Rust
gilstats.py - A utility for dumping per-thread statistics for CPython GIL using eBPF
ClickHouse - ClickHouse® is a real-time analytics database management system
external-Merge-Sort - external Merge Sort in python.
beam - Apache Beam is a unified programming model for Batch and Streaming data processing.
viztracer - A debugging and profiling tool that can trace and visualize python code execution