microsoft / jericho

A learning environment for man-made Interactive Fiction games.
GNU General Public License v2.0
253 stars 42 forks source link

BUG/SPEED: leverage 'rom' (fast) instead of reading story_file from filesystem (slow) #49

Closed MarcCote closed 2 years ago

MarcCote commented 2 years ago

I noticed a speed issue when reading story files from blob storage.

This PR makes FrotzEnv instances properly use the cache version of a story after loading it once. Note the cache is not shared across FrotzEnv instances (features? maybe on env.copy()?).

This PR finishes the work I started in https://github.com/microsoft/jericho/pull/35!