Move the blacklist storage to an external file
Posted: Thu Jun 19, 2014 12:27 am
Checking my error console I see the following:
Further exploration shows this is the capability.policy.maonoscript.sites preference and that the warning was added almost a year ago. The warning even showed up in October 2013 in http://forums.informaction.com/viewtopi ... =7&t=17293, but nobody commented on it then.
I realize the warning starts at 4kb and 8kb is pretty far away from the 1MB hard limit, but maybe you could store the blacklist externally? (and possibly the whitelist too). There's already import/export code defining a reasonable format, although maybe the profile data should be compressed for faster startup.
Side note: the forum software blocked the title "Store the blacklist in an external file", apparently due to the word 'store'. Maybe it could be a little less trigger-happy?
Code: Select all
Warning: attempting to write 8987 bytes to preference sites. This is bad for general performance and memory usage. Such an amount of data should rather be written to an external file.I realize the warning starts at 4kb and 8kb is pretty far away from the 1MB hard limit, but maybe you could store the blacklist externally? (and possibly the whitelist too). There's already import/export code defining a reasonable format, although maybe the profile data should be compressed for faster startup.
Side note: the forum software blocked the title "Store the blacklist in an external file", apparently due to the word 'store'. Maybe it could be a little less trigger-happy?