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

Add an off-heap Option #100

Open
adam-wyluda opened this issue Mar 11, 2016 · 2 comments
Open

Add an off-heap Option #100

adam-wyluda opened this issue Mar 11, 2016 · 2 comments
Labels

Comments

@adam-wyluda
Copy link
Contributor

It would work like one-element off-heap array. Option.empty would be just a null reference, otherwise it will point to address containing value of this Option.

The use case for this class is return value of some off-heap collection methods, such as find or get in Map.

@adam-wyluda
Copy link
Contributor Author

Also the benefit of having an Option as a return type for methods, is that it can dereference primitive type values to memory instead of returning them directly, which effectively allows us to have null references of the primitives.

@densh
Copy link
Owner

densh commented Mar 15, 2016

Sounds good to me.

@densh densh added the Feature label Mar 15, 2016
@densh densh added this to the 0.2 milestone Mar 15, 2016
@adam-wyluda adam-wyluda changed the title Consider adding an off-heap Option Add an off-heap Option Mar 16, 2016
@densh densh removed this from the 0.2 milestone Mar 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants