-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Precompile should check staleness using a hash instead of a timestamp #17845
Comments
staleness check happens in |
Thanks! I updated the original post. |
I see, the problem here is that the timestamp has changed because As a workaround, |
that was a workaround I suggested in the StatsBase issue, but I think this could happen for other reasons and might be good for making |
Making staleness depend on the hash would be great for users who work on distributed system (supercomputers and such). @andreasnoack and I have been running into problems sometimes. |
Here is a nice-looking hardware-accelerated BSD-licensed CRC32c implementation in C by Mark Adler: http://stackoverflow.com/questions/17645167/implementing-sse-4-2s-crc32c-in-software/1 |
And here is a benchmark of different CRC routines, concluding that Adler's routine is pretty much the fastest. |
I've always been fairly against doing this with checksums. I agree there needs to be more development here, but I haven't been able to develop a complete proposal yet to address these and other similar issues. |
@vtjnash, doing |
Should this be closed in light of the discussion at #18127? |
As discussed in JuliaStats/StatsBase.jl#202, alternating
Pkg.add(X)
andusing X
statements can lead to errors. According to @tkelman, this could be fixed by makingrequire
check staleness by looking at the timestamp instead of a hash.Example:
The text was updated successfully, but these errors were encountered: