-
Notifications
You must be signed in to change notification settings - Fork 94
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
Very slow decoding #40
Comments
Hi! Thanks for the report and for providing the example file. I was able to replicate and run the profiler. It looks like most of the time is being spent within |
Hi! I just pushed a fix to the repo which should fix this and improve performance generally. I think it could have been fixed with a few strategic "copy.copy" calls, but I wanted to be sure I wasn't missing any edge cases so ended up rewriting quite a bit. There's definitely more room for performance improvements as well. I haven't pushed to pypi yet, but will next week after I double check a few more things. |
Nice ! I think you might want to give a try to |
Ok. The changes should be pushed to pypi now as version 1.4.0. Let me know if you have any issues. I tried a few different tweaks to improve performance further, such as doing copy-on-write and protocols instead of full classes, but didn't see any performance gains for this payload so left it as-is for now. |
Hello, I am using blackboxprotobuf to decode a YouTube response, and it's very slow. The response file weighs 1.3mb, and it took me 19 minutes to decode it, as shown below.

Even with the typedef it's extremely slow. Here's the file:
slow_proto.txt
Is there something I can do to improve this ?
The text was updated successfully, but these errors were encountered: