Commit d93526e
Move batch_size parameter to ArrivalOrder for better semantic design
- Add batch_size parameter to ArrivalOrder class with comprehensive documentation
- Include memory formula: Peak memory ≈ concurrent_streams × batch_size × max_buffered_batches × (average row size)
- Update default concurrent_streams from 1 to 8 for better performance out-of-the-box
- Remove batch_size parameter from to_arrow_batch_reader() and to_record_batches() methods
- Simplify API by putting batch_size where it has direct memory impact (streaming orders)
- TaskOrder uses PyArrow defaults, ArrivalOrder provides full memory control
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent b5cfb78 commit d93526e
2 files changed
+33
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
1837 | 1837 | | |
1838 | 1838 | | |
1839 | 1839 | | |
1840 | | - | |
1841 | 1840 | | |
1842 | 1841 | | |
1843 | 1842 | | |
| |||
1853 | 1852 | | |
1854 | 1853 | | |
1855 | 1854 | | |
1856 | | - | |
1857 | 1855 | | |
1858 | 1856 | | |
1859 | | - | |
1860 | | - | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
1861 | 1864 | | |
1862 | 1865 | | |
1863 | 1866 | | |
| |||
1868 | 1871 | | |
1869 | 1872 | | |
1870 | 1873 | | |
1871 | | - | |
1872 | | - | |
1873 | | - | |
1874 | 1874 | | |
1875 | 1875 | | |
1876 | 1876 | | |
| |||
1881 | 1881 | | |
1882 | 1882 | | |
1883 | 1883 | | |
1884 | | - | |
| 1884 | + | |
1885 | 1885 | | |
1886 | 1886 | | |
1887 | 1887 | | |
1888 | | - | |
| 1888 | + | |
1889 | 1889 | | |
1890 | 1890 | | |
1891 | 1891 | | |
| |||
1914 | 1914 | | |
1915 | 1915 | | |
1916 | 1916 | | |
1917 | | - | |
1918 | 1917 | | |
1919 | 1918 | | |
1920 | 1919 | | |
1921 | 1920 | | |
1922 | 1921 | | |
1923 | | - | |
| 1922 | + | |
1924 | 1923 | | |
1925 | 1924 | | |
1926 | 1925 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
177 | 190 | | |
178 | 191 | | |
179 | | - | |
| 192 | + | |
| 193 | + | |
180 | 194 | | |
181 | 195 | | |
182 | 196 | | |
| |||
2181 | 2195 | | |
2182 | 2196 | | |
2183 | 2197 | | |
2184 | | - | |
| 2198 | + | |
2185 | 2199 | | |
2186 | 2200 | | |
2187 | 2201 | | |
| |||
2194 | 2208 | | |
2195 | 2209 | | |
2196 | 2210 | | |
2197 | | - | |
2198 | 2211 | | |
2199 | | - | |
2200 | | - | |
2201 | | - | |
2202 | | - | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
2203 | 2217 | | |
2204 | 2218 | | |
2205 | 2219 | | |
| |||
2215 | 2229 | | |
2216 | 2230 | | |
2217 | 2231 | | |
2218 | | - | |
| 2232 | + | |
2219 | 2233 | | |
2220 | 2234 | | |
2221 | 2235 | | |
| |||
0 commit comments