Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Managing the Image Cache

From: sanghabum::aol::com at: 18-Jun-2001 12:06

Is there any way of getting finer-grained control over the cahse used by Load-Image? Problem. I have a program that lets the family browse a photo album (JPG images.) Each click of forward/back gets them another 12 photos. The images are loaded into a VID box with the Load-Image function. But each image is cached automatically. The machine's memory usage starts to soar and at somewhere around the 200 image mark my system/stats is over 600MB and the machine (a 128Meg win98 thing) starts to impersonate molasses. I know load-image has a /clear refinement to empty the cache. But that's overkill. I'd like the last 100 images or so to remain cached. So does anyone know of a way to set an upper limit on the image cache? Or to partially purge it? --Thanks! --Colin.