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

Zero-allocation encodings #53

Closed
SSheldon opened this issue Feb 5, 2017 · 2 comments
Closed

Zero-allocation encodings #53

SSheldon opened this issue Feb 5, 2017 · 2 comments

Comments

@SSheldon
Copy link
Owner

SSheldon commented Feb 5, 2017

Currently primitive types have encodings that do not allocate (they're defined from static strings) but compositions like structs either have to jump through hoops and use different encoding strings for different architectures or accept the cost of allocating a string and pushing the encoding of their fields.

Is there a better way to do this, where encodings from structs could more simply be composed without allocating?

@SSheldon
Copy link
Owner Author

My attempt at this is underway at SSheldon/rust-objc-encode

@SSheldon
Copy link
Owner Author

SSheldon commented Apr 7, 2019

objc was updated to use objc-encode in 6092caa.

@SSheldon SSheldon closed this as completed Apr 7, 2019
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

No branches or pull requests

1 participant