This repository was archived by the owner on Nov 21, 2026. It is now read-only.
Repository navigation
bindings: parallel insert_many numbers re-taken on an engine with the bucket allocator fix (#149) - #169
Merged
Conversation
… bucket allocator fix (#149) The docstring, the import guide, the API page, the docs index, and example 22 repeated numbers measured before upstream 6212446 (ArcadeData#8677): "no faster on the default single bucket", "2.5x faster at 8 buckets on 4 cores", and partitioned keyed loads of 7.8 s against 3.4 s with keyed lookups of 62 against 53 us. Re-taken through the installed wheel (engine b22b5e9) on a laptop's four performance cores (parallel level 3), 6 interleaved runs per arm, every run clean (no own-cgroup memory stall, no suspend): insert_many(parallel=True) is 1.11x to 1.14x faster than the synchronous mode at 1, 3, 4, and 8 buckets alike (Mann-Whitney U p 0.002 to 0.026), and 8 buckets are no faster than 1 (1.02x, bootstrap 95% interval 0.99 to 1.06). Keyed, 400,000 rows, 4 buckets: the parallel load 3.15 s against 2.53 s partitioned (1.25x, interval 1.20 to 1.37), a keyed lookup 16.2 against 14.6 us. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ubz3m6QXHESerCkehC1qgi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #149.
The parallel
insert_manynumbers in the docs came from engines without upstream's bucket allocator fix (62124466c9): "2.5x faster at 8 buckets", "7.8 s against 3.4 s partitioned", "a keyed lookup 62 against 53 us", and "on the default single bucket it is no faster". Re-taken on a wheel whose engine printsb22b5e9954(contains the fix), on the laptop's 4 performance cores with nothing else running, parallel level 3, 1,000,000 rows, 6 interleaved runs per arm (Mann-Whitney U, bootstrap 95% intervals):Parallel at 8 buckets against parallel at 1 bucket: 1.02x [0.99, 1.06], p 0.13, so more buckets no longer help. Keyed, 400,000 rows, 4 buckets, UNIQUE
id: the parallel load 3.15 s by default against 2.53 s partitioned (1.25x [1.20, 1.37]), a keyed lookup 16.2 against 14.6 us (1.11x, p 0.0049).Changed: the
insert_manydocstring incore.py,docs/guide/import.md,docs/api/database.md,docs/index.md, and example 22's comment. The maintainers' bucket rule (ArcadeData#8478) stays; the claims that the parallel mode is no faster on one bucket and 2.5x at 8 go.🤖 Generated with Claude Code
https://claude.ai/code/session_01Ubz3m6QXHESerCkehC1qgi