Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » U++ community news and announcements » Global Value Cache
Global Value Cache [message #54211] Thu, 11 June 2020 09:06 Go to previous message
mirek is currently offline  mirek
Messages: 13979
Registered: November 2005
Ultimate Member
Well, this feature development started when testing UWord with R PI4. When I has loaded some .jpg images into document, resizing these took ages, because jpg decompression is quite slow. So the idea was that decompressed image should be cached before resized, but the old caching mechanism favored reduced memory consumption. Which was sad given there was about 3GB RAM free during testing...

So it got me thinking that we maybe should react to the amount of free memory (however you define it) in the system while caching. First I started to develop a protocol that would communicate the information about available memory to all registered caches but then got better idea: Image is Value, so why not create single global cache of Values, adjusted to available system memory...

The result is https://www.ultimatepp.org/src$Core$ValueCache_en-us.html.

Image cache ("MakeImage") is now just client to this global value cache and its size is periodically adjusted (when running GUI) to the system current status...
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Changes in hashing
Next Topic: Variadic templates helper functions
Goto Forum:
  


Current Time: Mon May 13 07:42:52 CEST 2024

Total time taken to generate the page: 0.02692 seconds