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

What happened to reactor-alloc? #8

Closed
IceMan81 opened this issue Aug 11, 2016 · 2 comments
Closed

What happened to reactor-alloc? #8

IceMan81 opened this issue Aug 11, 2016 · 2 comments

Comments

@IceMan81
Copy link

I came here looking for reactor-alloc as the main reactor project lists reactor-alloc under reactor-addons. I was going to ask about a RingBuffer based lock-free implementation of an allocator (for object pooling) but was surprised to see that reactor-alloc doesn't exist.

My interest in a lock-free allocator is related to my discussion here
https://groups.google.com/d/msg/reactor-framework/h2Dsm0USZjw/bGNotRyNCQAJ

If its not possible to avoid object creation when using reactor based messaging, then a lock free allocator would be useful to mitigate GC issues.

@smaldini
Copy link
Contributor

We have currently progressed in various ways on reactor-core, where we avoid event creation by directly and statically typing the user payload.

@IceMan81
Copy link
Author

@smaldini Even though the the event is statically typed, the event value is passed by reference. So in many instances the publishers always end up creating a value object for every publish which adds GC pressure for hot streams. What would help is a way to set the value in the event i.e. reuse the value objects in addition to reusing the event objects.

Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants