Click here to Skip to main content
15,921,716 members
Home / Discussions / C#
   

C#

 
Questionusing npgsql Pin
mabrahao26-Jan-11 8:01
mabrahao26-Jan-11 8:01 
QuestionRegEx Question Pin
Kevin Marois26-Jan-11 6:54
professionalKevin Marois26-Jan-11 6:54 
Answerbelongs in RegEx forum Pin
Luc Pattyn26-Jan-11 7:17
sitebuilderLuc Pattyn26-Jan-11 7:17 
AnswerRe: RegEx Question Pin
AspDotNetDev26-Jan-11 7:24
protectorAspDotNetDev26-Jan-11 7:24 
GeneralRe: RegEx Question Pin
Kevin Marois26-Jan-11 8:18
professionalKevin Marois26-Jan-11 8:18 
GeneralRe: RegEx Question Pin
OriginalGriff26-Jan-11 8:20
mveOriginalGriff26-Jan-11 8:20 
GeneralRe: RegEx Question Pin
Kevin Marois26-Jan-11 8:21
professionalKevin Marois26-Jan-11 8:21 
AnswerRe: RegEx Question Pin
TheGreatAndPowerfulOz26-Jan-11 7:33
TheGreatAndPowerfulOz26-Jan-11 7:33 
GeneralRe: RegEx Question Pin
OriginalGriff26-Jan-11 8:25
mveOriginalGriff26-Jan-11 8:25 
GeneralRe: RegEx Question Pin
TheGreatAndPowerfulOz26-Jan-11 8:32
TheGreatAndPowerfulOz26-Jan-11 8:32 
GeneralRe: RegEx Question Pin
AspDotNetDev26-Jan-11 9:31
protectorAspDotNetDev26-Jan-11 9:31 
GeneralRe: RegEx Question Pin
TheGreatAndPowerfulOz26-Jan-11 9:59
TheGreatAndPowerfulOz26-Jan-11 9:59 
GeneralRe: RegEx Question Pin
RobCroll26-Jan-11 12:55
RobCroll26-Jan-11 12:55 
QuestionReserve memory in Collection Pin
hairy_hats26-Jan-11 5:58
hairy_hats26-Jan-11 5:58 
AnswerRe: Reserve memory in Collection Pin
Yusuf26-Jan-11 6:43
Yusuf26-Jan-11 6:43 
AnswerRe: Reserve memory in Collection Pin
Luc Pattyn26-Jan-11 7:23
sitebuilderLuc Pattyn26-Jan-11 7:23 
GeneralRe: Reserve memory in Collection Pin
hairy_hats27-Jan-11 5:43
hairy_hats27-Jan-11 5:43 
GeneralRe: Reserve memory in Collection Pin
Luc Pattyn27-Jan-11 5:49
sitebuilderLuc Pattyn27-Jan-11 5:49 
AnswerRe: Reserve memory in Collection Pin
DaveyM6926-Jan-11 8:26
professionalDaveyM6926-Jan-11 8:26 
AnswerRe: Reserve memory in Collection Pin
Luc Pattyn26-Jan-11 8:56
sitebuilderLuc Pattyn26-Jan-11 8:56 
GeneralRe: Reserve memory in Collection Pin
AspDotNetDev26-Jan-11 9:35
protectorAspDotNetDev26-Jan-11 9:35 
AnswerRe: Reserve memory in Collection Pin
AspDotNetDev26-Jan-11 9:41
protectorAspDotNetDev26-Jan-11 9:41 
Some things you can try:
  1. Set the intial capacity of the list as large or larger than you think you'll need it (as others have mentioned, the List class has a constructor for this purpose). This could potentially cut the time in about half.
  2. Use structs rather than classes so the memory will be allocated immediately rather than in small chunks over time.
  3. Recycle your objects (that is, don't make new objects... save them for use later).


QuestionGenerate from PDF images with iTextSharp? Pin
BoySetsFire26-Jan-11 5:56
BoySetsFire26-Jan-11 5:56 
AnswerRe: Generate from PDF images with iTextSharp? Pin
Yusuf26-Jan-11 6:47
Yusuf26-Jan-11 6:47 
GeneralRe: Generate from PDF images with iTextSharp? Pin
BoySetsFire26-Jan-11 8:29
BoySetsFire26-Jan-11 8:29 

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.