Click here to Skip to main content
15,885,757 members
Home / Discussions / C#
   

C#

 
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 
Questionhow a dataset can transfer from server to client using socket programming in C# Pin
abhishek2931-Mar-09 5:56
abhishek2931-Mar-09 5:56 
AnswerRe: how a dataset can transfer from server to client using socket programming in C# Pin
0x3c031-Mar-09 6:51
0x3c031-Mar-09 6:51 
GeneralRe: how a dataset can transfer from server to client using socket programming in C# Pin
abhishek2931-Mar-09 7:31
abhishek2931-Mar-09 7:31 
GeneralRe: how a dataset can transfer from server to client using socket programming in C# Pin
agent00zelda31-Mar-09 8:22
agent00zelda31-Mar-09 8:22 
GeneralRe: how a dataset can transfer from server to client using socket programming in C# Pin
0x3c031-Mar-09 8:28
0x3c031-Mar-09 8:28 
Questionhow to group...... Pin
priyareguri31-Mar-09 5:55
priyareguri31-Mar-09 5:55 
JokeRe: how to group...... PinPopular
musefan31-Mar-09 6:14
musefan31-Mar-09 6:14 
GeneralRe: how to group...... Pin
Yusuf31-Mar-09 6:20
Yusuf31-Mar-09 6:20 
GeneralRe: how to group...... Pin
Fayu31-Mar-09 6:27
Fayu31-Mar-09 6:27 
AnswerRe: how to group...... Pin
DaveyM6931-Mar-09 6:22
professionalDaveyM6931-Mar-09 6:22 

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.