Article View: news.software.readers
Article #79257Re: Xnews uses dynamic alloc for listview memory?
From: C32
Date: Fri, 25 May 2001 22:27
Date: Fri, 25 May 2001 22:27
24 lines
1981 bytes
1981 bytes
Thanks for your comments guys, here's my own suggestion: Create the listview with the LVS_OWNERDATA style. This makes the control request all data and such from the owner, hence _you_ control what data to store about the items and where, how, etc. About the memory allocation thing, I realize that it'd be problematic to allocate locked physical memory under win9x (I won't say impossible, it is probably possible using some weird tricks like _PageReserve/Commit) Anyhow, it can be done under NT/2K using VirtualLock as Matthijs Laan pointed out. Finally, if we assume a listview item uses 500 bytes of memory (header text is ~400 bytes (ANSI, single byte chars), maybe 100 bytes for lines/from/time/no.) that'd be 30mb for a 60.000 post group.. Say a person has 5-6 big group windows open at the same time, that'd be maybe 180mb.. Personally I have that kind of memory to spare (and run 2K), and I think more and more people will too, given the low price of ram these days. I think it'd be a nice option, but come to think of it, it may be a lot of work for a not-exactly-giant improvement :) C32
Technical Details
Message-ID:
<Xns90AD528E1305xxcom@195.8.69.79>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!newspeer.clara.net!news.clara.net!dionysos.POSTED!not-for-mailReferences:
<Xns90ABE0079A63Axxcom@195.8.69.79>Show Full Headers
Complete Article Headers
Message-ID: <Xns90AD528E1305xxcom@195.8.69.79> Subject: Re: Xnews uses dynamic alloc for listview memory? Date: Fri, 25 May 2001 23:27:32 BST From: x@x.com (C32) References: <Xns90ABE0079A63Axxcom@195.8.69.79> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!newspeer.clara.net!news.clara.net!dionysos.POSTED!not-for-mail Newsgroups: news.software.readers User-Agent: Xnews/4.01.30 Organization: clara.net http://www.clara.net/ NNTP-Posting-Host: 62.243.120.212 Lines: 23 X-Complaints-To: abuse@clara.net X-Trace: 378089043e1430193fa40020307838021f400434619828007da48a403b0edc54