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

Move getOldestEntry to test file #200

Merged
merged 1 commit into from
Jan 9, 2020

Conversation

janisz
Copy link
Collaborator

@janisz janisz commented Jan 9, 2020

Move getOldestEntry from production code to test where it's used.

Copy link
Collaborator

@siennathesane siennathesane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks fine to me!

@siennathesane siennathesane merged commit b161e1c into allegro:master Jan 9, 2020
Copy link
Collaborator

@cristaloleg cristaloleg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a big fan of unneede closure

@siennathesane
Copy link
Collaborator

I'm not a big fan of unneede closure

@cristaloleg would you be able to clarify what you mean by that? Are you saying that the whole lifecycle of this PR was too fast? It was a simple change and all the tests passed, so I didn't see a reason to wait on it since I was already looking at it.

@cristaloleg
Copy link
Collaborator

@mxplusb No, everything is ok, just I'm trying to reduce amount of closures inside hot path when it's possible. AFAIR they're not inlined at all, which is a bit uncool for us.

@siennathesane
Copy link
Collaborator

Gotcha, that makes sense. It's part of the test so I'm less concerned in this specific base, but I do agree that closures should be used carefully.

flisky pushed a commit to flisky/bigcache that referenced this pull request May 7, 2020
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.

3 participants