Click here to Skip to main content
15,919,341 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionCode Optimazing Suggestion Pin
Young_Padawan8-Jun-10 1:25
Young_Padawan8-Jun-10 1:25 
AnswerRe: Code Optimazing Suggestion Pin
JHizzle8-Jun-10 2:27
JHizzle8-Jun-10 2:27 
GeneralRe: Code Optimazing Suggestion Pin
Young_Padawan8-Jun-10 21:49
Young_Padawan8-Jun-10 21:49 
AnswerRe: Code Optimazing Suggestion Pin
Eddy Vluggen8-Jun-10 2:40
professionalEddy Vluggen8-Jun-10 2:40 
GeneralRe: Code Optimazing Suggestion Pin
Young_Padawan8-Jun-10 21:51
Young_Padawan8-Jun-10 21:51 
AnswerRe: Code Optimazing Suggestion Pin
Pete O'Hanlon8-Jun-10 2:41
mvePete O'Hanlon8-Jun-10 2:41 
GeneralRe: Code Optimazing Suggestion Pin
Young_Padawan8-Jun-10 22:04
Young_Padawan8-Jun-10 22:04 
AnswerRe: Code Optimazing Suggestion Pin
Pete O'Hanlon8-Jun-10 22:15
mvePete O'Hanlon8-Jun-10 22:15 
Some things that come to mind here - you don't need to get the index of the lvwMyLvw columns every time. I would store these index values as constants and refer to those instead.

I would also look at using listview virtualization to add small chunks of data - by all means keep your data in memory, but use virtualization to only display the necessary amount, and provide a callback to fill the items as necessary; there's no need for the listview to contain all the data.

Is your listview being sorted on insert? If it is, switch that feature off and sort your data in memory instead - this is a much less expensive technique than letting the listview do it.

Did you know that you can create listview items in memory without touching the control? You could create the items and then add them to the visual listview using AddRange which is much more efficient than adding an item at a time using Add.

"WPF has many lovers. It's a veritable porn star!" - Josh Smith

As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.


My blog | My articles | MoXAML PowerToys | Onyx



GeneralRe: Code Optimazing Suggestion Pin
Young_Padawan9-Jun-10 2:25
Young_Padawan9-Jun-10 2:25 
QuestionAny tips for working over a "Shared Online Folder " (dropbox) using Visual Studio 2010 express? Pin
venomation7-Jun-10 12:50
venomation7-Jun-10 12:50 
AnswerRe: Any tips for working over a "Shared Online Folder " (dropbox) using Visual Studio 2010 express? Pin
Abhinav S7-Jun-10 19:19
Abhinav S7-Jun-10 19:19 
GeneralRe: Any tips for working over a "Shared Online Folder " (dropbox) using Visual Studio 2010 express? Pin
venomation8-Jun-10 8:49
venomation8-Jun-10 8:49 
AnswerRe: Any tips for working over a "Shared Online Folder " (dropbox) using Visual Studio 2010 express? Pin
Pete O'Hanlon7-Jun-10 21:30
mvePete O'Hanlon7-Jun-10 21:30 
AnswerRe: Any tips for working over a "Shared Online Folder " (dropbox) using Visual Studio 2010 express? Pin
venomation8-Jun-10 8:50
venomation8-Jun-10 8:50 
QuestionRequired to install MDAC 2.6 Pin
Andraw Tang7-Jun-10 6:47
Andraw Tang7-Jun-10 6:47 
AnswerRe: Required to install MDAC 2.6 Pin
Abhinav S7-Jun-10 19:08
Abhinav S7-Jun-10 19:08 
Questionhow to create animated gif Pin
reza_stb20027-Jun-10 4:48
reza_stb20027-Jun-10 4:48 
AnswerRe: how to create animated gif Pin
dan!sh 7-Jun-10 5:10
professional dan!sh 7-Jun-10 5:10 
AnswerRe: how to create animated gif Pin
Luc Pattyn7-Jun-10 5:20
sitebuilderLuc Pattyn7-Jun-10 5:20 
GeneralRe: how to create animated gif [modified] Pin
reza_stb20027-Jun-10 5:34
reza_stb20027-Jun-10 5:34 
GeneralRe: how to create animated gif Pin
Pete O'Hanlon7-Jun-10 6:41
mvePete O'Hanlon7-Jun-10 6:41 
GeneralRe: how to create animated gif Pin
Luc Pattyn7-Jun-10 7:09
sitebuilderLuc Pattyn7-Jun-10 7:09 
GeneralRe: how to create animated gif Pin
reza_stb20027-Jun-10 9:13
reza_stb20027-Jun-10 9:13 
GeneralRe: how to create animated gif Pin
Luc Pattyn7-Jun-10 9:28
sitebuilderLuc Pattyn7-Jun-10 9:28 
GeneralRe: how to create animated gif Pin
reza_stb20027-Jun-10 12:47
reza_stb20027-Jun-10 12:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.