learnrhash icon indicating copy to clipboard operation
learnrhash copied to clipboard

Do hashes actually need to include outputs?

Open kcarnold opened this issue 4 years ago • 2 comments

Hashes are quite large. Manually decoding the generated hash shows that it's storing a lot of data, including the outputs for exercises. Is that included intentionally, or has filtering code just not been written yet?

kcarnold avatar Oct 01 '20 02:10 kcarnold

(1) Is it possible the length is related to https://github.com/rundel/learnrhash/issues/9#issuecomment-700476101?

(2) Output is included intentionally since that might be something you want to capture and check. What were you envisioning would be included in the hash?

mine-cetinkaya-rundel avatar Oct 01 '20 06:10 mine-cetinkaya-rundel

We've added an argument to encoder_logic that now allows for the output to be stripped from exercises. See the strip_output argument in the docs.

This seems particularly useful if any of the code chunks produce plots as these cause the size of the hashes to get very large.

rundel avatar Dec 08 '20 14:12 rundel