[Feedreader-development] Memory issue
Brought to you by:
toomastoots
From: Karsten H. <mai...@kh...> - 2004-04-29 07:46:45
|
Some days ago i got the following error: Started FR, updated feeds, read all new headlines. Minimized FR. Later FR did the autoupdate and a message appeared 'Out of memory'. At that point i had set 'Archive all headlines' and the total size of the xml files were ~ 9mb. Headlines was the biggest, ~ 8.5mb. The machine i was using has 256mb RAM running Win2000. Since i set 'Archive only latest 50 headlines' and restarted FR the error disappeared. The problem is that we use xml to store the headlines. When using DOM for xml handling, the whole xml document gets loaded into memory. Obviously the amount of memory needed to handle xml files is not just the file size, but it is the filesize * x. Suggestion: Change the way the headlines are stored. Don't use xml. For each feed create a ascii file and store just the headlines of this feed in the file. Filename could be the guid of the feed. Internally all headlines are stored in an array, so switching to separate ascii files will need just a rewrite of the in-/output routines for the headlines. Karsten Toomas Toots wrote: > I will read archives. I really do not remember, what was the problem. > Can you tell aproximetly how many folders and feeds do you have? > > Greetings > Toomas > > Nicole Simon wrote: > >> Toomas Toots <to...@i-...> wrote: >> >> >>> If Karsten could to it, let's test latest version >> >> >> Anything new on the memory management thing? >> >> I am still using Sharpreader at the moment, because it can handle my >> feeds :o( >> >> Niciole >> >> >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Feedreader-development mailing list > Fee...@li... > https://lists.sourceforge.net/lists/listinfo/feedreader-development > |