Hi Whats the best way to speed up the non static images request/response insteed of making io read call is it better to read all the images on startup to a dictonary in memory. What is the best buffer type to store the read content with?
class Images: def GET(self,name): .....logic... return open(name).read() #startup dict ={} def __init__(self): for i in os.listDir(): dict[name] = open(name).read() class imagesTestDict: GET(self,name) return dict[name] -- You received this message because you are subscribed to the Google Groups "web.py" group. To view this discussion on the web visit https://groups.google.com/d/msg/webpy/-/L2WYdngOZDsJ. To post to this group, send email to webpy@googlegroups.com. To unsubscribe from this group, send email to webpy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.