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 — Bridge: float vectors cross as one binary buffer, not as JSON text or one JPype call per element (stacked on #29) by tae898 · Pull Request #33 · ArcadeData/arcadedb-python Conversation
Collaborator
Stacked on #29 ( Ports humemai/arcadedb-embedded-python#496. A vector load spent most of its time on text: Python wrote every float as a decimal number and the engine parsed it back ( Also in this change:
Tests: Measured numbers: they come from the humemai float-vector-crossing laptop A/B study (
The insert_columns row compares the best case of the earlier bindings (one Not in this PR: user docs and the generated speed table. This repository has no user docs on this base (the Antora component is #23), and Checked locally: pre-commit (black, isort) and bandit (low severity, low confidence) clean; the touched and related tests (335 tests: float vector bulk, vector, vector SQL, insert_columns, graph batch, bulk insert, bulk JSON paths, numpy, type conversion, callbacks) pass on a wheel built from the 26.11.1.dev0 jars with this branch's bridge sources compiled by javac 25. Not run locally: the full wheel build (Docker, jlink) and the full test suite on all platforms and Python versions; CI covers those. 🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions… one JPype call per element A vector load spent most of its time on text: Python wrote every float as a decimal number and the engine parsed it back (insert_many), or JPype converted every list element on its own (create_vertices, Document.set). For a property declared ARRAY_OF_FLOATS the engine converts each number of a list to float anyway, so the vectors of a chunk now cross as one float32 matrix (FloatVectors.Matrix, one buffer copy) beside the JSON, and each document gets its own float[] row Java-side. Properties that are not declared ARRAY_OF_FLOATS, and vectors that are ragged, missing or null, keep the exact JSON path. Also: insert_columns accepts a 2-D float32 array as a column of vectors; a numpy array is accepted as a property value everywhere (Document.set, insert_many, create_vertices; it raised TypeError before); the allowed_rids filter of a vector search builds its RID set in one crossing (GraphCalls.ridSet) instead of two per RID. Tests: tests/test_float_vector_bulk.py (39 tests: exact float32 equality with the engine's own list conversion on doubles a float32 cannot hold, which values keep the JSON path, every entry point, parallel mode); tests/test_vector.py rid-conversion test now passes a Java RID object so the list takes the per-RID path; tests/test_python_callbacks.py numpy return value test follows the new conversion. Ported from humemai/arcadedb-embedded-python#496. The user docs and the speed table generated there live in that repository's docs; this repository has no user docs yet. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
9 of 10 tasks
No conflicts. Brings in the updated functions-events branch (which now carries main's merged changes through runtime-fixes). Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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. |