c# - Rapidly updated DataGridView -



c# - Rapidly updated DataGridView -

i utilize datagridview monitor io events. each time new io event occurs, datagridview populated new item containing timestamp among other data. these updates come every 10 ms, , want place new items @ top of grid.

i need maintain ~100 rows in grid; older ones should discarded not consume memory. attempts have proven slow, have ideas on how approach this?

displaying ticking info quite challenging task. 1 of biggest step improve performance can reducing refresh rate number recognizable human eye - 20 refreshes per sec without reacting each , every io event.

create or utilize ring buffer store 100 records , cut down gc / memory. use dispatcher timer , schedule grid refresh every 50ms. @ timer tick, grab buffer info preallocated collection , refresh grid entirely.

you can farther improve implementation optimizing step 2 - reducing measures of cells.

c# performance datagridview insert-update

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -