I have developed a C# windows application in Visual Studio 12. When I run this application, it slows down after 1-2 hours and makes PC slow and afterwards no able to do anything., I think it takes too much of physical memory(when checked win task manager it was about 97%).
Below is the introduction to application developed :
The application is very data intensive. The application contains one for loop which loops through around 300000times and this "for loop" also have one "inner for loop" which loops through 50000 time. I store all the data in lists, arrays and objects(I think these data structures consuming memory)
E.X.
Also suggest how to make this application fast!!!
Below is the introduction to application developed :
The application is very data intensive. The application contains one for loop which loops through around 300000times and this "for loop" also have one "inner for loop" which loops through 50000 time. I store all the data in lists, arrays and objects(I think these data structures consuming memory)
E.X.
Code:
for(i=0;i<300000;i++) { for(j=0; j<50000;j++) { //do some calculations // save results into objects and list } //create datatable based on object & list and add to dataset }
Comment