GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — bindings: fewer JPype crossings on a short read (one nextRows call, scalar parameters without the conversion walk) (#213) by tae898 · Pull Request #214 · humemai/arcadedb-embedded-python
This repository was archived by the owner on Nov 21, 2026. It is now read-only.
ConversationFixes #213.
Measured on the official 26.10.1 jars, interleaved, 13 runs per arm, ratios only (a laptop shared with other jobs): a documents SELECT by key through Tests: counting stand-ins show one Do not merge before the 26.10.1 release is pushed to main. 🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions… closes the drained result set (to_list no longer asks twice) RowAccess.nextRows and RowBatcher.nextJsonBatch return fewer rows than asked for only when the result set is drained, so they now close it before returning, and Python stops after a short batch: to_list() made a second nextRows call just to see an empty batch (the same extra crossing #144 removed from to_json_list()), and every drained result set cost one more crossing for close(). A JPype call is 3 to 4 microseconds, a fifth of a one-row read. Measured on the benchmark's own read shapes (src/ab_reads.py, official 26.10.1 jars, interleaved A/B, 13 runs per arm, cores 6-7 of a laptop shared with other jobs, every run flagged by the throttle and swap-in checks, so ratios only): the documents lane's SELECT by key through to_list() 0.83x [0.80, 0.89], p=0.0003; the same read through first().get() 0.90x. The l2 bound Cypher read through to_json_list() 0.92x [0.81, 1.06], p=0.38: not significant at 13 runs. Tests: counting stand-ins for the bridge classes show one nextRows and one nextJsonBatch for a short result, two for an exact batch; a JPype proxy of the Java ResultSet shows the bridge closes what it drains and leaves a result with rows alone; Python makes no close() call; the RID-paging tests (arcadedb ArcadeData#8594) still finish. Four of the nine new tests fail on the old code. Full bindings suite on the official 26.10.1 jars with the two changes of this branch: 815 passed, 3 skipped, 9 xfailed. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Ubz3m6QXHESerCkehC1qgi …n walk A dict of str keys whose values are plain scalars (int, float, str, bool, None, exact types), or positional scalars, now becomes a HashMap or an Object[] directly. JPype boxes them exactly as the general path boxed its unchanged values; numpy scalars, Decimal, dates, lists and subclasses of int keep the general path. Database._java_parameters cost 6.5 us for a one-key dict and 7.2 us for three positional values; it is 5.0 and 5.6 now (0.79x and 0.78x, 13 interleaved runs per arm, p<0.0001), on statements that are 15 to 60 us in all. Tests: a spy on convert_python_to_java sees no call for scalar parameters (the dict test fails on the old code), the same answers for every scalar type including 2**40 and null, and the general path is still taken for Decimal, lists, int subclasses and numpy scalars. Full bindings suite: 815 passed, 3 skipped, 9 xfailed. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Ubz3m6QXHESerCkehC1qgi Uh oh!
There was an error while loading. Please reload this page.
tae898
added a commit
that referenced
this pull request
The bindings 26.10.1 release (629b242), #214 (fewer JPype crossings on a short read: RowAccess.nextRows and RowBatcher.nextJsonBatch, scalar parameters bound without the conversion walk), #216 (docs, CI summary, scripts), the pruned foreign .github file, and upstream engine syncs. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Ubz3m6QXHESerCkehC1qgi
tae898
added a commit
that referenced
this pull request
…of bindings #214; row 63 names the wheel by the tree it is built from Bindings #214 (fewer JPype crossings on a short read, scalar parameters bound without the conversion walk) landed on main after the re-pin wheel was first built, and the bindings 26.10.1 release was cut before it and before the columnar insert. The wheel the stages bake is therefore a laptop build from this tree over the official jars, version 26.10.1, rebuilt after the merge of origin/main (abd7319): row 74 records what it carries, its size and sha256, the commit it was built from, that it is not the PyPI file, and that the re-pin's ArcadeDB embedded rows are not comparable with October's at the call-overhead level. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Ubz3m6QXHESerCkehC1qgi
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. bindings: fewer JPype crossings on a short read (one nextRows call, scalar parameters without the conversion walk)Uh oh!
There was an error while loading. Please reload this page. 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. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |