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

Optimised page file opening #837

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hylkevds
Copy link
Collaborator

Instead of mapping the entire page file every time a segment is re-used, we map the page file once, and re-use the mapped buffer for each segment.
The cache uses WeakReferences to ensure that a page file that is no longer used does not stay mapped.

Instead of mapping the entire page file every time a segment is re-used,
we map the page file once, and re-use the mapped buffer for each segment.
The cache uses WeakReferences to ensure that a page file that is no
longer used does not stay mapped.
@hylkevds
Copy link
Collaborator Author

It seems the 200ms timeout on creating subscriptions is sometimes not enough on the GitHub CI environment:

return subscribeWithIdentifier(topic, qos, subscriptionIdentifier, 200, TimeUnit.MILLISECONDS);

Do you want me to create a PR to increase it to 300?

@hylkevds hylkevds requested a review from andsel April 30, 2024 08:56
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

Successfully merging this pull request may close these issues.

None yet

1 participant