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 — JVM read path: fewer crossings per call (get_raw, one, count, lookup_by_key, transaction mark) by tae898 · Pull Request #524 · humemai/arcadedb-embedded-python
This repository was archived by the owner on Nov 21, 2026. It is now read-only.
ConversationThe JVM wheel's read path crossed into the JVM several times per operation; a JPype call is a few microseconds of dispatch, and an untimed async-profiler pass (CPU samples of the Python-driven threads, main wheel) put 10.7% of a warm point-read workload in JNI/libjvm and 5.2% in JPype C++ besides 5.4% of Java glue. This PR cuts the number of crossings of five common calls, each as its own commit, with the answer, the errors and the result-set state unchanged. What changes (crossings per call, counted by the new tests on a proxy of the Java object and the bridge classes; the tests that count fail on main and pass here)
Tests What was measured and what was not Only untimed crossing counts. No speed claim is made here: a timed ABBA A/B of the main wheel against this branch on the benchmark laptop (point reads, 🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions… path Counts the calls into the JVM of Document.get_raw, ResultSet.one() and count(), lookup_by_key and the transaction-stack mark, and pins that each answer, error and result-set state equals the plain path's. These fail on main: that is the change they ask for. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> …has() then get() get() answers null for a property the record does not have, as it does for one set to null; Python reads None either way, so the has() call only repeated the scan. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> …st() one() read hasNext()/next() per row and closed afterwards; count() crossed twice per row. upToTwoAndClose and countAndClose do the same work Java-side with the same errors and the same result-set state, and the plain path stays for a missing bridge class. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> …no Java arrays DbCalls.lookupFirstKey takes one key as scalars and lookupFirstKeys takes any number as the varargs of one call, so neither side builds a String[] and an Object[] per lookup. The engine receives the same arrays, and a different number of names and values reaches it as before. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> The mark taken before every begin() (with db.transaction(), run_in_transaction) asked isTransactionActive() and getNestedTransactions() separately. DbCalls.stackMark returns both as one number. The mark is still taken before begin(), so the interrupt and refused-begin rules of ArcadeData#9970 and ArcadeData#9813 are unchanged. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This was referenced
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
This was referenced
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. 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. |