简体   繁体   中英

Memory Utilization in C# application Compact Framework app

Hello i have developed windows CF c# application which uses SQL connectivity , and Bar-code Scanner , the application runs well sometime , gives Quick response , works fast , but sometimes the application works very slow, it takes more than 1 min to scan barcode. i have checked for other processes working on device but no other running processes found , i am using Wlan Connectivity to fetch data , Data-table in C# app to manage it
please suggest some improvements, changes , or any tasks to improve performance.

CLR maintains graph of special kind, which allows to determinate whether any data is reachable from user main method. If data is not reachable, it is supposed to be unused. It means, that unused data will be deleted. Of course, it doesn't mean that data will be deleted immediately. Garbage collector has some generations of objects, in a nutshell they are collection of objects, sorted by their usage priority. Unused data will be deleted when appropriate generation will be clean up (unfortunately, it is time is not known, it can be happened in any time). You should note, that only unused objects will be deleted from generation and some data can be moved to other generation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM