Skip to content
This repository has been archived by the owner on Apr 19, 2020. It is now read-only.

Consider adding support for packed field layout #28

Closed
densh opened this issue Apr 24, 2015 · 1 comment
Closed

Consider adding support for packed field layout #28

densh opened this issue Apr 24, 2015 · 1 comment

Comments

@densh
Copy link
Owner

densh commented Apr 24, 2015

Currently fields are layed out sequentially and padded as required by the data types they are holding. It would be great to also support packed layout where user tells the library that order of the fields doesn't matter and that they can be reordered to decrease the size. E.g.

@data class C(x: Short, y: Long, x: Short)                // 24 bytes 
@data(packed = true) class C(x: Short, y: Long, z: Short) // 16 bytes
@densh densh added the Maybe label May 20, 2015
@densh densh changed the title Add support for packed field layout Consider adding support for packed field layout May 20, 2015
@densh densh added the Feature label Jun 5, 2015
@densh
Copy link
Owner Author

densh commented Jun 28, 2016

Not enough interest.

@densh densh closed this as completed Jun 28, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant