Skip to content

expand protobuf support to 4.x - #456

Merged
drewaogle merged 9 commits into
developfrom
protobuf_versioning
Jul 25, 2024
Merged

drewaogle merged 9 commits into
developfrom
protobuf_versioning

Conversation

@drewaogle

Copy link
Copy Markdown
Contributor

No description provided.

@drewaogle
drewaogle requested review from gsaluja9 and luisremis July 24, 2024 21:12
@drewaogle drewaogle self-assigned this Jul 24, 2024
@drewaogle
drewaogle requested a review from bovlb July 25, 2024 00:20
Comment thread aperturedb/Connector.py Resolved
Comment thread aperturedb/Connector.py Resolved
gsaluja9
gsaluja9 previously approved these changes Jul 25, 2024

@gsaluja9 gsaluja9 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks . this would help many users! Just a feedback to make it an interface

@bovlb

bovlb commented Jul 25, 2024

Copy link
Copy Markdown
Contributor

Will we have any automated testing of a range of protobuf versions?

@drewaogle

Copy link
Copy Markdown
Contributor Author

I think that is a good idea, but is a bit more complex to decide what we should do.

@bovlb bovlb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

One question about what we're testing.

@drewaogle
drewaogle merged commit 1cd9b5d into develop Jul 25, 2024
@drewaogle
drewaogle deleted the protobuf_versioning branch July 25, 2024 15:44
@drewaogle

Copy link
Copy Markdown
Contributor Author

did testing on conversion:

Testing list(b[i:i+1000])
Size: 1000000,bytes(x) to  bytes, time: 0.04472851753234863
Size: 1000000,memoryview(x).tobytes() to  bytes, time: 0.04598498344421387
=====================
Testing list(b[i:])
Size: 1000000,bytes(x) to  bytes, time: 0.9096970558166504
Size: 1000000,memoryview(x).tobytes() to  bytes, time: 0.9073359966278076
=====================
Testing b[i:]
Size: 1000000,bytes(x) to  bytes, time: 0.05309891700744629
Size: 1000000,memoryview(x).tobytes() to  bytes, time: 0.05276131629943848

looks like for some ops converting bytesarray to bytes is slightly faster, but it is probably a wash

drewaogle added a commit that referenced this pull request Jul 25, 2024
* Colab logging (#455)

* Trying setting log level to minumum

* test

* fix

* Update aperturedb/__init__.py

Co-authored-by: Drew Ogle <[email protected]>

* fmt

* Fix for Kaggle issue

---------

Co-authored-by: Drew Ogle <[email protected]>

* expand protobuf support to 4.x (#456)

* expand protobuf support to 4.x
* add shim file
* try to make it performant
* make queryMessage wrap ParseFromString

* Version bump: 0.4.30 to 0.4.31

---------

Co-authored-by: bovlb <[email protected]>
Co-authored-by: Drew Ogle <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants