Click here to Skip to main content
15,905,325 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Generate from PDF images with iTextSharp? Pin
Yusuf26-Jan-11 8:50
Yusuf26-Jan-11 8:50 
QuestionHaving trouble with network account removal on local machine Pin
turbosupramk326-Jan-11 5:11
turbosupramk326-Jan-11 5:11 
QuestionReturn List<> frrom WebMethod Pin
huge_superman26-Jan-11 3:45
huge_superman26-Jan-11 3:45 
AnswerRe: Return List frrom WebMethod Pin
TheGreatAndPowerfulOz26-Jan-11 7:51
TheGreatAndPowerfulOz26-Jan-11 7:51 
GeneralRe: Return List frrom WebMethod Pin
huge_superman26-Jan-11 9:46
huge_superman26-Jan-11 9:46 
GeneralRe: Return List frrom WebMethod Pin
TheGreatAndPowerfulOz26-Jan-11 10:04
TheGreatAndPowerfulOz26-Jan-11 10:04 
GeneralRe: Return List frrom WebMethod Pin
Pete O'Hanlon26-Jan-11 10:04
mvePete O'Hanlon26-Jan-11 10:04 
QuestionGet assembly name that called class library Pin
Chesnokov Yuriy26-Jan-11 1:23
professionalChesnokov Yuriy26-Jan-11 1:23 
AnswerRe: Get assembly name that called class library Pin
Pete O'Hanlon26-Jan-11 1:31
mvePete O'Hanlon26-Jan-11 1:31 
GeneralRe: Get assembly name that called class library Pin
Chesnokov Yuriy26-Jan-11 1:36
professionalChesnokov Yuriy26-Jan-11 1:36 
GeneralRe: Get assembly name that called class library Pin
Henry Minute26-Jan-11 2:07
Henry Minute26-Jan-11 2:07 
AnswerRe: Get assembly name that called class library Pin
Chesnokov Yuriy26-Jan-11 2:25
professionalChesnokov Yuriy26-Jan-11 2:25 
QuestionMulti-language installer in Visual Studio Deployment and Setup project Pin
linuxfedora25-Jan-11 23:23
linuxfedora25-Jan-11 23:23 
AnswerRe: Multi-language installer in Visual Studio Deployment and Setup project Pin
Pete O'Hanlon26-Jan-11 1:11
mvePete O'Hanlon26-Jan-11 1:11 

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.