-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Trying to fix the endian issue #68
Conversation
|
||
// Force little endian: | ||
bb.order(ByteOrder.LITTLE_ENDIAN); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess that "forcing" doesn't work if the underlying datastructure (files) isn't something simple like a byte[].
I've written some tests locally that call these methods with BIG and LITTLE endian byte[] buffers to test, they both seem to work fine now. (fingers crossed!)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a problem still arises, perhaps @gunnarmorling could run the "runTests()" method and see if something fails there... there shouldn't be any output.
…perhaps handy for others to see as well) Inlined the hash function, runs locally in 2.4sec now, hopefully endian issues fix Added equals to support any city name up to 1024 in length, don't rely on hash
…, easier to debug.
Simple is faster
@royvanrijn, could you please take a look at the test failures reported by
And remove the "test failure" label once done? It's a test suite we've added today to catch some corner cases. Thx! |
@gunnarmorling I'd love to remove the label, but I have no idea how haha; the code is fixed... |
@royvanrijn, something still seems wrong:
|
(ignore the sdk not found stuff) |
Fixed buffer limit issue
YES! All passing now and LGTM. 00:12.685, close 2nd after @spullara! Merging. I couldn't quite pay attention yesterday, were tere more things discussed in your first PR which still could bring some improvements? |
@gunnarmorling Can you check this works? I've tried to fix the endianness issue, as usual "it works on my machine"
It is currently running in ~2.9 seconds on my MacBook Pro, would love to see the server results, it's been a while 💯