You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 21, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 21, 2026. It is now read-only.
Python bindings: per-call overhead of command(), query(), and the result wrapper #280
The Python bindings add a fixed cost to every Database.command() and query() call, on top of the JPype crossing and the engine. Measured on the laptop (P cores, official 26.10.1 wheel, JDK 25):
A three-statement transaction: raw JPype 55 us against 70 us through the bindings, so about 16 us is the bindings layer.
Plan: profile command(), query(), begin(), commit(), and the result wrapper on small loops (one-row reads by key, one-row updates, single-row inserts with a vector, a three-statement transaction). For each cost, measure a trimmed Python path against a small Java glue method that does several steps in one crossing, and keep the faster one. Behaviour (results, exceptions, transaction semantics, overload choice) stays identical. The result and A/B table go in the PR, and the same change is applied to the tests, examples, and docs.
Activity