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

Avoid payload copy when inserting into managed ledger cache #4197

Merged
merged 1 commit into from
May 3, 2019

Conversation

merlimat
Copy link
Contributor

@merlimat merlimat commented May 2, 2019

Motivation

After #4066, we now have a strict upper bound for the time spent in cache by entries. Since this was the principal reason to make a copy when inserting into the cache, we can now avoid that data copy and just increment the refcount on the same buffer.

Leaving it as an option to fallback to the original behavior, just in case there is any unforeseen regression in behavior under particular conditions.

@merlimat merlimat added the type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages label May 2, 2019
@merlimat merlimat added this to the 2.4.0 milestone May 2, 2019
@merlimat merlimat self-assigned this May 2, 2019
@merlimat
Copy link
Contributor Author

merlimat commented May 2, 2019

run integration tests

@merlimat merlimat merged commit e9619fa into apache:master May 3, 2019
sijie pushed a commit that referenced this pull request Jan 18, 2020
### Motivation
Some parameters are added in the `broker.conf` and `standalone.conf` files. However, those parameters are not updated in the docs.
See the following PRs for details: #4150, #4066, #4197, #3819, #4261, #4273, #4320.

### Modifications
Add those parameter info, and sync docs with the code.

Does not update the description quite much, there are two reasons for this:
1. Keep doc content consistent with code. We need to update the description for those parameters in the code first, and then sync them in docs.
2. Will adopt a generator to generate those content automatically in the near future.
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
### Motivation
Some parameters are added in the `broker.conf` and `standalone.conf` files. However, those parameters are not updated in the docs.
See the following PRs for details: apache#4150, apache#4066, apache#4197, apache#3819, apache#4261, apache#4273, apache#4320.

### Modifications
Add those parameter info, and sync docs with the code.

Does not update the description quite much, there are two reasons for this:
1. Keep doc content consistent with code. We need to update the description for those parameters in the code first, and then sync them in docs.
2. Will adopt a generator to generate those content automatically in the near future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants