Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi All,

Can you please help me on this .
I have one c# method it is taking more time while execution i want to reduce the time of excution how to do this please help me.
If i can use multithreading how to i can use plase let me know on this.

Advcanced thak you,

Regards,
Narasimha
Posted
Updated 20-Oct-22 0:00am
Comments
Richard MacCutchan 3-Feb-12 5:50am    
Without some more details of the code that is taking all this time it is impossible to make any suggestions. While multi-threading may help it is not guaranteed to solve your problem.

1 solution

Please mention detail about 'What you are trying to do inside method?'

Multi-Threading is helpful to overcome slow tasks, but not always the solution.

Meanwhile, you can also check some Optimization Tips[^]

Edit: In such case, what I first look for is closing those IO handles, any unmanaged objects, etc which I might have unknowingly kept open.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900