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

Code quality tweaks #12

Closed
wants to merge 6 commits into from
Closed

Code quality tweaks #12

wants to merge 6 commits into from

Conversation

e-aakash
Copy link
Member

Remove logs and unused events.
Update tests for regeneration

Copy link
Member

@syntaxi syntaxi left a comment

Choose a reason for hiding this comment

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

Few points


public long getLowestEndTime() {
return lowestEndTime;
return soonestEndTime;
Copy link
Member

Choose a reason for hiding this comment

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

You need to do something with result here

private float remainder;
public long soonestEndTime;
public Map<String, Float> regenValue = new HashMap<>();
public Map<String, Long> regenEndTime = new HashMap<>();
Copy link
Member

Choose a reason for hiding this comment

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

If you can find a way, make this a map sorted on the long value. It will greatly improve performance because at present to find min, & to remove below a specific amount then you can quickly and easily do this. It does make removing by id harder, but this is not as often needed.

@Cervator
Copy link
Member

Closing as superseded by #16, which is now merged 👍

@Cervator Cervator closed this Jun 21, 2019
@e-aakash e-aakash deleted the regen branch June 22, 2019 16:57
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

3 participants