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

Consider using only 1 bit per argument in the Argument Encoding Bitmap #330

Open
popematt opened this issue Aug 12, 2024 · 0 comments
Open
Labels
minor-tweaks Small changes that might be considered before finalizing 1.1 spec, time permitting. specification 1.1 Ion 1.1 specification work

Comments

@popematt
Copy link
Contributor

We could potentially make most macro invocations even smaller in binary Ion by using only one bit per argument in the Argument Encoding Bitmap (AEB), but the tradeoff is that a void argument for a * parameter would likely be larger, and it could introduce more complexity into (and slow down) the binary reader and writer.
The interpretation of the AEB could be something like the following:

Cardinality 0 1
! n/a n/a
? void single expression
+ expression group single expression
* expression group single expression
@popematt popematt added specification 1.1 Ion 1.1 specification work minor-tweaks Small changes that might be considered before finalizing 1.1 spec, time permitting. labels Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor-tweaks Small changes that might be considered before finalizing 1.1 spec, time permitting. specification 1.1 Ion 1.1 specification work
Projects
None yet
Development

No branches or pull requests

1 participant