Re: loadLVInfo() 4 Derek & Euman

new topic     » goto parent     » topic index » view thread      » older message » newer message

Neat idea. Sounds easy enough to include without breaking existing code, so
I'll put in the enhancement list.
------------
cheers,
Derek

----- Original Message -----
From: "jordah ferguson" <jorfergie03 at yahoo.com>
To: "EUforum" <EUforum at topica.com>
Subject: loadLVInfo() 4 Derek & Euman


>
> Hi Derek or Euman,
>
> I have just been using the routine loadLVInfo() in win32lib and i have a
> problem and a suggestion. i'll start with the problem.
> I came to realise that every call to loadLVinfo() causes the existing
> info in the LV to be deleted. couldn't you omit the deleting part for
> those who want bulk data added to already existing data?
>
> The routine is clearly fast but it can be made much faster, by simply
> doing the following steps
>
> 1) Get the LV count before inserting any data
> 2) Get the length of the data you are going to insert.
> 3) send this message to the control LVM_SETITEMCOUNT specifying the
> number of items the LV will ultimately have.
>
> sending LVM_SETITEMCOUNT preallocates the internal tables of all items
> going to be inserted with just one call other than having to make new
> internal allocations for every insert.
>
> Sorry, i'm at an e-cafe and i cannot code/test the enhanced routine. if
> you are busy then i could code the routine when i get home and i'll post
> it when i next check the list.
>
> jordah
>
>
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu