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

Parsing large message might cause performance down. #29

Open
chobie opened this issue Jan 30, 2014 · 0 comments
Open

Parsing large message might cause performance down. #29

chobie opened this issue Jan 30, 2014 · 0 comments

Comments

@chobie
Copy link
Owner

chobie commented Jan 30, 2014

ProtocolBuffersMessage class design is fully representation protocol buffers message into PHP classes.
this makes easy to use with PHP. you can easily to customize message class, convert message into another format.

but this also means parsing large (has many child message) message will slow down performance (it takes many memories and times).
imagine creating 10000 of complicated child message when parsing the data. It's really tough work.

when you want to use this with web services. then you should keep 1 message size between 1.5K ~ 10Kbytes with gzip. (I recommend under 3Kbytes).

see also: https://developers.google.com/protocol-buffers/docs/techniques#large-data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant