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

Improved integer conversion, delayed string creation. #502

Closed
wants to merge 9 commits into from

Conversation

jgrateron
Copy link
Contributor

All test pass
new runtime 14 sec.

@gunnarmorling
Copy link
Owner

Interesting, is this actually faster on your system? On the eval system it's ~19 sec now.

@jgrateron
Copy link
Contributor Author

start my linux in "init 3" defaults the results, now if the time is correct 14 seconds

@gunnarmorling
Copy link
Owner

How is this dealing with hash collisions actually? It seems if two station names yield the same hash code, the aggregation would be wrong?

@jgrateron
Copy link
Contributor Author

I did several tests and there are no collisions between station names, but to prevent this I added the length of the string in the initialization of the hash.

image

@gunnarmorling
Copy link
Owner

Hum, I fail to understand how this resolves the issue. As a matter of principle it must be guaranteed that no values from several stations are mixed up, i.e. all potential collisions must be handled correctly.

@jgrateron jgrateron closed this Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants