I developed a Firefox add-in that should save some user data on the local computer. I am currently using the file system functionality that Firefox provides to create some folders and files on the user system.
Portability is a problem. I designed it for Windows XP. But the structure of the Vista folder is different (inside the application data). Linux is completely different. I do an OS check and create / read / write files accordingly. Suddenly I need to support a Mac!
I thought, why not save the data in Firefox settings. I will use the settings manager.
On average, the total amount of data is unlikely to exceed 100 KB. But the fact is that in rare cases the data can be quite large - in the worst case - a few megabytes. So, is it a good idea to save it as preference values?
I know that this is not what it is intended for, but it will save me many headaches.
Even if this is a bad idea, just let me know about performance or other problems (if any) for storing a lot of data in the settings.
Thanks.
anonymous
source
share