Skip to content

load in tmp_{col}.py on first run IF there are no changes to the originating module. #5

Description

@hearnderek

How to tell if there was a change to the file:

Hacky Idea 1:

When generating python file

  1. Generate MD5 hash of the user module. (only imagining a single file)
  2. Place hash into generated flat script as a standard string variable user_module_hash.

When initializing engine

  1. search for matching flat script within working directory
  2. Generate MD5 hash of the user module.
  3. test user_module_hash against generated hash
  4. if match use flat script
  5. if not match ignore flat script

Adjacent Idea 1:

Once we start generating these files, it would be nice to have a central place to keep them, and have them out of the way for user.
Store flat file in a sqlite database, with it's hash, create date, etc.
Alternatively we could store the files in a zipfile which acts as a document store.
This then means we have a place to store our results as well. (Which then I would want to look into optimizing writes to sqlite)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions