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

Tutorial/Docs in-memory off-heap #7

Open
Pro100AlexHell opened this issue Sep 20, 2016 · 0 comments
Open

Tutorial/Docs in-memory off-heap #7

Pro100AlexHell opened this issue Sep 20, 2016 · 0 comments

Comments

@Pro100AlexHell
Copy link

Pro100AlexHell commented Sep 20, 2016

Please make a tutorial and docs: how to create in-memory (off-heap) objects, how to allocate, how to serialize/deserialize (if need, i can't understand) this to byte array (located off-heap), how to change it fields.
For example now (in current system) I have class
User
{
long Id;
List[ItemA] ItemsA; // class ItemA { .. }
List[ItemB] ItemsB; // class ItemB { .. }
// and many more field
}

// and global collection
static HashMap[long, User] AllUsers;

// .. dynamically created users, dynamically filled ItemsA, B, ..

as I understand, I need use SharedMemoryMap.java or subclasses, but can't understend how.
and how to allocate new User, it's new ItemA, how to put, get to User.ItemsA collection.

is it enough to replace my static HashMap[long, User] AllUsers into SharedMemoryMap[long, User] or not?


should I see https://github.com/odnoklassniki/shared-memory-cache ? can't understand where is the full cache/allocate code.

@Pro100AlexHell Pro100AlexHell changed the title Tutorial/Docs in-memory Tutorial/Docs in-memory off-heap Sep 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants