Re: ! Too Many Ways to Do Simple Tasks
I didn't say that, I don't think... I see that was Joe in the conversation.
Certainly sorting 5K elements will take some time. My suggestion would not
improve that directly, but if you are adding all items to the list control
then going virtual will give you a lot of speed up in managing that control
and if your item sort is something that can be done in a map the sorting may
happen for you as items are added so you may get some improvement there as
well. I often have to handle as many as 100K objects representing files
people want to put on optical media so I certainly understand what you are
saying. I disabled sorting in one of my programs because it just wasn't
practical and, instead, introduced a filtering mechanism that allowed people
to drop folders rather than individual files.
When I sort my objects I do it mostly by rearranging pointers and using the
virtual list control idea and that's worked best for me. Rearranging
pointers is faster than recreating objects. You may already be doing that.
FWIW I feel your pain.
".rhavin grobert" <email@example.com> wrote in message
On 11 Nov., 23:09, "Tom Serface" <tom.nos...@camaswood.com> wrote:
Have you considered using a virtual list control instead? I use them all
the time and sorting is easy (you just keep your object array sorted which
could something like a Map).
".rhavin grobert" <cl...@yahoo.de> wrote in message
On 10 Nov., 20:58, Joseph M. Newcomer <newco...@flounder.com> wrote:
Nobody cares about how many instructions it takes
In a sorting algorithm and in a CustomDraw, i'd really try to use as
few instructions as possible. Try to sort do a custom sorting in a
CListView with 5000 Elements and you'll see, what i mean.
if you sort 5000 elements it doesnt matter if the displaying box is
virtual or not; you have to sort 5k Elements. I was refering to your
quote "Nobody cares about how many instructions it takes". And in a
Custom-Draw, it's the same: be as fast as possible, because you may be
the systems or at least the applications bottleneck at that time.
Anybody here ever used NeoCrome and Calamus on AtariST? Now THAT was