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

.NET (Core and Framework)

 
GeneralWebservices for database - opinion Pin
Kaushik DIA26-May-05 8:15
Kaushik DIA26-May-05 8:15 
QuestionHow to programmatically apply some policy to user/group? Pin
mmsspp25-May-05 20:13
mmsspp25-May-05 20:13 
GeneralDataAdapter and muliple tables Pin
Luke Murray25-May-05 16:54
Luke Murray25-May-05 16:54 
GeneralRe: DataAdapter and muliple tables Pin
Robert Rohde28-May-05 4:57
Robert Rohde28-May-05 4:57 
GeneralArray handling Pin
sarabjs25-May-05 9:58
sarabjs25-May-05 9:58 
GeneralRe: Array handling Pin
Scott Page25-May-05 15:26
professionalScott Page25-May-05 15:26 
GeneralRe: Array handling Pin
sarabjs26-May-05 6:04
sarabjs26-May-05 6:04 
GeneralRe: Array handling Pin
sarabjs26-May-05 11:32
sarabjs26-May-05 11:32 
Nopes! no success...

I understand an ArrayList is better when a dynamic data structure is required - but I don't need a dynamic structure - I basically add the values to the array once at the beginning (takes less than a fraction of a second), process them (this is what takes ~ 3-4 seconds), and then read them back from the array (also takes almost no time).

Besides, I need a two-dimensional array. Building such a structure would require me to add new ArrayList objects for each row - this in turn adds to the overhead I pay when referencing each element since I now need to cast each row to ArrayList.

The use of ArrayList also adds extra-overhead of casting the object to int each time I need to refer to it as well as calling two functions (ArrayList.RemoveAt() and ArrayList.Insert()) when I need to update a value in the stucture (something I need to do often in my processing).

The time improvement I'm looking for isn't as much in updating the data structure I use, but more about how do I store the values such that they can be read and written to fast (faster than they are in an array).

Hope you have a solution...
GeneralRe: Array handling Pin
Scott Page27-May-05 4:06
professionalScott Page27-May-05 4:06 
GeneralRe: Array handling Pin
DavidNohejl26-May-05 12:02
DavidNohejl26-May-05 12:02 
GeneralRe: Array handling Pin
sarabjs27-May-05 8:44
sarabjs27-May-05 8:44 
GeneralRe: Array handling Pin
DavidNohejl28-May-05 6:32
DavidNohejl28-May-05 6:32 
GeneralRe: Array handling Pin
sarabjs30-May-05 7:54
sarabjs30-May-05 7:54 
GeneralRe: Array handling Pin
Robert Rohde27-May-05 5:41
Robert Rohde27-May-05 5:41 
GeneralRe: Array handling Pin
sarabjs27-May-05 9:26
sarabjs27-May-05 9:26 
GeneralRe: Array handling Pin
sarabjs27-May-05 9:48
sarabjs27-May-05 9:48 
GeneralRe: Array handling Pin
Robert Rohde28-May-05 0:40
Robert Rohde28-May-05 0:40 
GeneralRe: Array handling Pin
sarabjs30-May-05 7:44
sarabjs30-May-05 7:44 
GeneralRe: Array handling Pin
Robert Rohde30-May-05 8:31
Robert Rohde30-May-05 8:31 
GeneralRe: Array handling Pin
sarabjs30-May-05 10:18
sarabjs30-May-05 10:18 
GeneralRe: Array handling Pin
Robert Rohde30-May-05 18:53
Robert Rohde30-May-05 18:53 
GeneralRe: Array handling Pin
sarabjs31-May-05 5:12
sarabjs31-May-05 5:12 
GeneralRe: Array handling Pin
Robert Rohde31-May-05 8:07
Robert Rohde31-May-05 8:07 
GeneralRe: Array handling Pin
sarabjs31-May-05 9:55
sarabjs31-May-05 9:55 
GeneralRe: Array handling Pin
DavidNohejl28-May-05 6:21
DavidNohejl28-May-05 6:21 

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.