Conversation
|
Review status: 0 of 2 files reviewed at latest revision, 2 unresolved discussions. value.go, line 150 at r1 (raw file):
This call to the local function read() could read a few bytes and then return with io.EOF. The result is that we have to truncate the file. (And the bug is that we don't.) We could use io.ReadFull instead, or we could always truncate, to address this. value_test.go, line 277 at r1 (raw file):
Partial Comments from Reviewable |
|
Review status: 0 of 2 files reviewed at latest revision, 2 unresolved discussions. value.go, line 150 at r1 (raw file): Previously, srh (Sam Hughes) wrote…
Fixed. I just got rid of the value_test.go, line 277 at r1 (raw file): Previously, srh (Sam Hughes) wrote…
Fixed Comments from Reviewable |
|
Everything else looks correct to my eyes. My main other concern is performance. The general question is how much should we care -- disks are slow, right? I'm not so sure about the future though, what with NVM devices. Going by this: https://golang.org/src/hash/crc32/crc32_amd64.go It looks like Golang supports the amd64 CRC32 instruction if we use Castagnoli instead of Koopman. This would make it about as fast as using Adler32 or Fletcher checksums on that platform. Review status: 0 of 2 files reviewed at latest revision, all discussions resolved. Comments from Reviewable |
|
The whole code path for Castagnoli seems more specialised (short cuts in a few places), so using that instead. Review status: 0 of 2 files reviewed at latest revision, all discussions resolved. Comments from Reviewable |
|
Reviewed 1 of 2 files at r2, 1 of 1 files at r3. Comments from Reviewable |
|
Reviewed 1 of 2 files at r2, 1 of 1 files at r3. value.go, line 107 at r3 (raw file):
Remove vertical space here. value.go, line 194 at r3 (raw file):
Duplication here. Just make sure that there's no special reasoning why they should be two separate calculations. value.go, line 209 at r3 (raw file):
No need for lock acquisition. Comments from Reviewable |
|
Review status: 1 of 2 files reviewed at latest revision, 3 unresolved discussions. value.go, line 107 at r3 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. value.go, line 194 at r3 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. Comments from Reviewable |
|
Review status: 1 of 2 files reviewed at latest revision, 3 unresolved discussions. value.go, line 209 at r3 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. Comments from Reviewable |
Changes:
[header][key][value][crc32].This change is