-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
cache() with capacity hint overload #1303
Comments
I'm not sure how to approach changing |
This is done good enough for now as of #1393 which was merged. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Provide a
cache(int capacity)
overload that acts as a hint for memory allocation.Ideally it should also allow for an optimization with
ReplaySubject
when the capacity is 1 so it can use a simple object reference to store the single value and not allocate an array. If more than 1 is received then it would obviously have to switch to using an array, but there are many case, such as Hystrix that would benefit from this change.The text was updated successfully, but these errors were encountered: