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

encoder: optimize MessageBuilder data handling by adopting encoded data #34391

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

deanlee
Copy link
Contributor

@deanlee deanlee commented Jan 15, 2025

Optimized MessageBuilder data handling by directly adopting encoded data using edat.adoptData(msg.getOrphanage().referenceExternalData(dat)), eliminating data copying and reducing overhead.

References:

  1. Cap’n Proto Discussion
  2. https://github.com/capnproto/pycapnp/issues/153

Screenshot from 2025-01-15 21-55-29

@deanlee deanlee changed the title encoder: optimize MessageBuilder data handling by adopting external data encoder: optimize MessageBuilder data handling by adopting encoded data Jan 16, 2025
@adeebshihadeh adeebshihadeh merged commit 3219fe1 into commaai:master Jan 20, 2025
18 checks passed
@deanlee deanlee deleted the encoder_optimize_data_handing branch January 20, 2025 11:51
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.

2 participants