Django caching a large list
问题 My django application deals with 25MB binary files. Each of them has about 100,000 "records" of 256 bytes each. It takes me about 7 seconds to read the binary file from disk and decode it using python's struct module. I turn the data into a list of about 100,000 items, where each item is a dictionary with values of various types (float, string, etc.). My django views need to search through this list. Clearly 7 seconds is too long. I've tried using django's low-level caching API to cache the