c# - Slow application on windows xp 500mb ram -
i made c# windows form application requires .net 4.0. wrote under windows 8 modern notebook , there works fast. it's not heavy, has 2 threads read values serial devices , save datas or show charts. when run on old pc windows xp, pentium 4 3ghz, 500mb di ram , prehistoric 20 gb hd, it's slow. pc has nothing installed, it's not software problem. seems gui terribly heavy. takes seconds open , close forms, if aren't patient can crash it. there gif showed in picture box. on notebook blinks every second, on pc blink in 4-5 seconds. same timer updated every second on notebook , every 3-4 seconds on pc. apparently doesn't occupy lot of resources: used ram 128 mb , cpu around 4-5%. have idea on why slow?
i have seen things before, application runs fast on laptop gets out in field on user's desktop older processor, things slowed down.
it helps run following performance profiler. can install on desktop without having install developer tools. take snapshots around event slow, in results see methods slow. maybe there file access runs in loop , can reduce access time loading item in memory. maybe there database call happens more should. https://www.jetbrains.com/profiler/?frommenu
on project found first chance exceptions causing slowness on other computers , helped run vs on hardware , monitor 1st change exceptions. if have vs on box can pause processing @ slow moments, @ stacktrace see spending of processing time.
hope helps,
Comments
Post a Comment