> Thoughts?

i would use a "cache" QMap, and keep it in sync just when needed.
fill the cache from file on load/construction/first access, write the cache to
file on destruction, thus you won't have any file access during setter/getter
functions.

you can do file handling in a thread to not block callers, 
you can force a write via timeout signal, e.g. 
"do threaded sync to file after 5 seconds of last change to cache".

and:
pay attention to thread-safety if you need it.

-- 
/*
 *  An honest tale speeds best being plainly told.
 *      -- William Shakespeare, "Henry VI"
 */

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to