Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Micro-optimisations #367

Draft
wants to merge 30 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
d968aed
Remove abc.ABC as base class for Message
Gobot1234 Apr 11, 2022
06c1926
Use frozensets for contains checks
Gobot1234 Apr 11, 2022
6e8d5da
Inline functions where possible
Gobot1234 Apr 11, 2022
98a91f5
Don't create a bytearray for each call to _serialize_single
Gobot1234 Apr 11, 2022
9f92f6c
Don't check origin against typing special forms
Gobot1234 Apr 11, 2022
3e7416e
Use is for type comparisons
Gobot1234 Apr 11, 2022
2b2debf
Optimise for the normal case for dict.__getitem__
Gobot1234 Apr 11, 2022
fac0ed3
Simplify from_dict a tad and reduce number of comparisons
Gobot1234 Apr 11, 2022
fea05f2
Recursive messages are pain
Gobot1234 Apr 11, 2022
c942fe1
Get rid of __raw_get
Gobot1234 Apr 11, 2022
c6c5d99
Remove redundant conditional
Gobot1234 Apr 11, 2022
3337c8e
Optimise from_dict slightly better
Gobot1234 Apr 11, 2022
32fc569
I don't know how this would fix the tests
Gobot1234 Apr 11, 2022
f17ec62
Tests should now actually pass
Gobot1234 Apr 12, 2022
fa6fb84
Update deps
Gobot1234 Apr 12, 2022
f168031
Add in something I forgot to include
Gobot1234 Apr 15, 2022
bfcf43e
Fix 3.6
Gobot1234 Apr 15, 2022
018ae74
Fix 3.6 properly
Gobot1234 Apr 15, 2022
0fa972c
Use hasattr(x, "__iter__") rather than isinstance(x, Iterable) and fl…
Gobot1234 Apr 22, 2022
630055b
Merge branch 'master' into more-micro-opts
Gobot1234 Apr 23, 2022
eb2cbcc
remove typing import
Gobot1234 Apr 23, 2022
b313172
Remove circular import
Gobot1234 Apr 23, 2022
993904b
poetry.lock again
Gobot1234 Apr 23, 2022
9f51d15
Don't change dataclasses version
Gobot1234 Apr 23, 2022
0b15d46
Fix some annotations
Gobot1234 Apr 23, 2022
42cc8cb
Merge branch 'master' into more-micro-opts
Gobot1234 Apr 30, 2022
3fa66f2
Merge branch 'master' into more-micro-opts
Gobot1234 Jun 16, 2022
f044718
Make betterproto.Casing no longer an Enum.
Gobot1234 Jun 16, 2022
64dbc67
Perform similar optimisations to from_pydict to from_dict
Gobot1234 Jun 16, 2022
bc67c5c
Replace accidental .get call
Gobot1234 Aug 2, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading