Ways to reduce memory

2000-10-03 Thread Mark B. Elrod
1) As I have said before make plugins load on demand rather than all at once on startup 2) Ref count and share PlayListItems between music catalog and playlist manager 3) Only create playlist items for areas of the tree that are visible or that are added to the playlist. For a large catalog this

more ?? about strings and memory

2000-10-03 Thread Mark B. Elrod
so i whipped up a quick test program that created 10 string objects and assigned them the same literal value... used about 15 megs of memory. also tried assigning them the same string value as in: string foo = "Hello, this is a test of the string memory management in the STL."; for(int i =

Re: more ?? about strings and memory

2000-10-03 Thread Chris Kuklewicz
I have been working on other features, but I would guess that IF strings are COW then when I replaced the strings in metadata with char * in HashStore, THEN strings NOT in metadata could no longer refer to Metadata and had to start making a private copy of the data. For instance the

Re: Ways to reduce memory

2000-10-03 Thread Chris Kuklewicz
On Tue, Oct 03, 2000 at 08:57:46AM -0700, Mark B. Elrod wrote: 1) As I have said before make plugins load on demand rather than all at once on startup Absolutely. And unload if we can, for instance the themes 2) Ref count and share PlayListItems between music catalog and playlist

Unexpected error handling in HttpInput::Open

2000-10-03 Thread Chris Kuklewicz
When looking at an old playlist, with an old bad http entry, the words "timed out" were sent to the terminal, and a window popped up reporting the error, then freeamp exited. The only "timed out" string in the code is in HttpInput::Open and this is the problem (from my Doxygen pages): In

Patch to add menu option in music browser

2000-10-03 Thread Chris Kuklewicz
Would someone with win32 building add this option to that option menu as well? Index: base/include/playlist.h === RCS file: /src/repository/freeamp/base/include/playlist.h,v retrieving revision 1.62 diff -u -r1.62 playlist.h ---