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

Add support for upcoming packed arrays tags #2

Open
cowtowncoder opened this issue May 3, 2016 · 2 comments
Open

Add support for upcoming packed arrays tags #2

cowtowncoder opened this issue May 3, 2016 · 2 comments
Labels

Comments

@cowtowncoder
Copy link
Member

(originally by neothemachine)


There is a draft RFC to be published soon which adds support for packed/typed arrays in CBOR, see the current version. As one of the original CBOR authors is also an author of this proposal I'm sure it will gain widespread adoption in encoders and decoders, especially because it is such a useful feature and will help greatly when big packed arrays need to be efficiently encoded and also decoded both in terms of space usage and speed.

I thought it would be good putting it on the radar for implementation. I think it will be rather straightforward to implement. I currently don't have time for it myself in the next 3-4 weeks but I certainly will help where I can, reviewing code etc.

@cowtowncoder
Copy link
Member Author

Quick note: Should be (more) doable with Jackson 2.8, planning to add JsonParser support to make it possibly to efficiently and simply support a small set of "well-known" array types; int[] and long[] at least, but maybe short[] for good measure.

Could be FasterXML/jackson-core#241 or perhaps something even more direct.

@cowtowncoder
Copy link
Member Author

So, explicit array writes are now included for int[], long[] and double[]: if packed arrays functionality becomes official CBOR feature it should be much easier to support those now.

@cowtowncoder cowtowncoder changed the title [cbor] Add support for upcoming packed arrays tags Add support for upcoming packed arrays tags Nov 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant