Click here to Skip to main content
15,891,647 members
Home / Discussions / C#
   

C#

 
GeneralRe: I need help. I'm a programming noob. Pin
VB Noobie31-Mar-09 13:57
VB Noobie31-Mar-09 13:57 
GeneralRe: I need help. I'm a programming noob. Pin
Christian Graus31-Mar-09 14:19
protectorChristian Graus31-Mar-09 14:19 
GeneralRe: I need help. I'm a programming noob. Pin
VB Noobie31-Mar-09 14:54
VB Noobie31-Mar-09 14:54 
GeneralRe: I need help. I'm a programming noob. Pin
Christian Graus31-Mar-09 15:14
protectorChristian Graus31-Mar-09 15:14 
GeneralRe: I need help. I'm a programming noob. Pin
VB Noobie31-Mar-09 15:43
VB Noobie31-Mar-09 15:43 
GeneralRe: I need help. I'm a programming noob. Pin
Christian Graus31-Mar-09 17:13
protectorChristian Graus31-Mar-09 17:13 
Generalupdating a database Pin
c#_novice31-Mar-09 12:23
c#_novice31-Mar-09 12:23 
GeneralRe: updating a database Pin
Colin Angus Mackay31-Mar-09 12:53
Colin Angus Mackay31-Mar-09 12:53 
QuestionExecute File.exe From Resource HELP ME Pin
ajusagmar31-Mar-09 11:01
ajusagmar31-Mar-09 11:01 
AnswerRe: Execute File.exe From Resource HELP ME Pin
Garth J Lancaster31-Mar-09 11:36
professionalGarth J Lancaster31-Mar-09 11:36 
QuestionUploading a file but zero bytes are shown Pin
T_Teef31-Mar-09 10:49
T_Teef31-Mar-09 10:49 
AnswerRe: Uploading a file but zero bytes are shown Pin
agent00zelda31-Mar-09 10:55
agent00zelda31-Mar-09 10:55 
QuestionTo string or not to string Pin
Skymir31-Mar-09 10:14
Skymir31-Mar-09 10:14 
AnswerRe: To string or not to string Pin
agent00zelda31-Mar-09 10:58
agent00zelda31-Mar-09 10:58 
GeneralRe: To string or not to string Pin
Garth J Lancaster31-Mar-09 11:37
professionalGarth J Lancaster31-Mar-09 11:37 
GeneralRe: To string or not to string Pin
Skymir31-Mar-09 13:58
Skymir31-Mar-09 13:58 
AnswerRe: To string or not to string Pin
Luc Pattyn31-Mar-09 16:33
sitebuilderLuc Pattyn31-Mar-09 16:33 
GeneralRe: To string or not to string Pin
Skymir1-Apr-09 2:48
Skymir1-Apr-09 2:48 
I thought of those, that's why I was asking if someone had more info on their performance. If I use an array, I have to add in code to check what the last used element was, in order to add new values on to the end. If I use a collection (ordering isn't important for the data) then I have the overhead of a linked list. With the string being essentially an array of char[] I was pretty sure it would come down to either the string or just an array if there was enough overhead removal to warrant the code change.

From the link I was given, it looks like that fastest way to go is going to be a 48 element array. Since I'm only dealing with at most 4 of them at a time, they should stay in cache. I only have to keep track of how many elements are there during the adding process to prevent having to scan the array before every addition. For reading I have an easy cheat, since 0 isn't a valid value, I'll know when I hit the last element.

What I think will also help out a lot is some restructuring of the class that's being worked with to produce the number lists in the first place. It's a small class to begin with and I think I can reduce it down to a value type struct, by moving the functions into the container class. If all goes well, the whole mess should fold up into cache with a bit of room to spare. Then it should just come down to figuring out how many sets I can queue up from the database at a time.

The true man wants two things: danger and play. For that reason he wants woman, as the most dangerous plaything.

QuestionHow to make Clean publish ??? Pin
resha12331-Mar-09 10:09
resha12331-Mar-09 10:09 
AnswerRe: How to make Clean publish ??? Pin
Mycroft Holmes31-Mar-09 12:02
professionalMycroft Holmes31-Mar-09 12:02 
QuestionNo WMI query results from code, but results from WMIC? Pin
bbranded31-Mar-09 8:49
bbranded31-Mar-09 8:49 
AnswerRe: No WMI query results from code, but results from WMIC? Pin
bbranded3-Apr-09 10:32
bbranded3-Apr-09 10:32 
Questioncarry textbox pointer forward or back Pin
behzadcp31-Mar-09 6:35
professionalbehzadcp31-Mar-09 6:35 
AnswerRe: carry textbox pointer forward or back Pin
0x3c031-Mar-09 6:45
0x3c031-Mar-09 6:45 
GeneralRe: carry textbox pointer forward or back Pin
behzadcp31-Mar-09 7:13
professionalbehzadcp31-Mar-09 7:13 

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.