What makes WPF application startup slow?

前端 未结 5 1682
醉酒成梦
醉酒成梦 2020-12-08 05:21

I noticed that WPF application startup is sometimes pretty slow. Does anybody know if the the cause is the elements initialization or DLLs loading or something else?

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-08 06:09

    What helped me the most from the excellent article that Stuart links to was the XmlSerializer trick. That really shaved up quite a few seconds. Furthermore don't underestimate defragmenting your HD :-)

提交回复
热议问题