Skip to content

Add msgpush. #1

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

Merged
merged 4 commits into from
Aug 8, 2018
Merged

Add msgpush. #1

merged 4 commits into from
Aug 8, 2018

Conversation

dfquaresma
Copy link
Member

It brings the msgpush from java-experiments.

if (WINDOW_SIZE>0) {
buffer = new byte[WINDOW_SIZE][MSG_SIZE];
}
try {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please remove SLEEP_TIME_MS?

private static final boolean USE_GCI = Boolean.parseBoolean(System.getenv("USE_GCI"));
private static int MSG_SIZE;
private static int WINDOW_SIZE;
private static int COMPUTING_TIME_MS = 15;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please remove COMPUTING_TIME_MS? It is not being used.

buffer[msgCount++ % WINDOW_SIZE] = byteArray;
}

long max = 5000;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please remove this prime number calculation. Let's standardize on the original msgpush. Fell free to look at other Implementation examples in ruby and in go.

@danielfireman danielfireman merged commit 924c489 into master Aug 8, 2018
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.

2 participants