Reg:使用工具从Vb 6.0迁移到Vb.net 3.5后的性能问题 [英] Reg: Performance issue after migration from Vb 6.0 to Vb.net 3.5 using tool
问题描述
我已经迁移了VB.使用称为ArtinSoft的工具将6.0应用程序转换为vb.net 3.5窗口应用程序.
我既没有重新架构它,也没有优化代码库.
为了使应用程序正常运行,我进行了尽可能少的更改.
现在,我遇到了性能问题.
Vb.net应用程序的性能比VB 6.0应用程序慢得多,因此我们的客户端尚未准备好接受它.
现在,我需要优化代码库,也许我可以将其重新架构到一定级别.
请帮助我使用工具进行此类迁移时需要优化哪些内容?
这是我第一次这样做.
如果有人已经完成了此类迁移项目或类似的活动,请帮助我.
谢谢
Akash Agarwal
Hi,
I have migrated an VB. 6.0 application into vb.net 3.5 window application using an tool called ArtinSoft.
Neither have I re-architected it nor optimized the codebase.
I have made as least as possible changes just to make the application run properly.
Now I am facing the performance issues.
Performance of the Vb.net application is much slower from VB 6.0 application so our client is not ready to accept it.
Now I need to optimize the codebase and may be I can re-architect it up to an certain level.
Please help me on what are the things I need to optimize when we do this type of migration using an tool?
This is first time I did so.
Please help me if someone has already done this type of migration project or similar activity.
Thanks
Akash Agarwal
推荐答案
我没有像您那样迁移过一个应用程序(总是重写了该应用程序),但这是我要做的/考虑的事情:
-重写非常慢的代码
-使用.NET框架.编写可替换外部组件或包装器的代码. (类似于SerialPort,而不是某些rs232类).
-使用BackGroundWorker进行耗时的操作.
http://msdn.microsoft.com/zh-CN /library/system.componentmodel.backgroundworker(v=VS.90).aspx [ http://msdn.microsoft.com/en-us/library/ex0ss12c (v = VS.90).aspx [ http://social.msdn.microsoft.com /Forums/zh-CN/clr/thread/7a6d0d3e-24b5-4f0a-ac59-b7bb0e1c4611/ [
I haven''t migrated an application like you did (always rewrote the application), but this is what I would do / consider:
- rewrite code that is really slow
- use .NET framework. Write code that can replace external components or wrappers. (Like SerialPort instead of some rs232 class).
- use BackGroundWorker for time consuming actions.
http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker(v=VS.90).aspx[^]
- use a splash screen at startup and other visual effects like hourglass, progressbar, clock or anything that shows the user that the application is busy.
- place the assembly in the Global Assembly Cache (GAC). I wouldn''t recommend it, but it is something to consider.
http://msdn.microsoft.com/en-us/library/ex0ss12c(v=VS.90).aspx[^]
http://social.msdn.microsoft.com/Forums/en-US/clr/thread/7a6d0d3e-24b5-4f0a-ac59-b7bb0e1c4611/[^]
- how are you connecting to the database?
- and like cuteband advised: use stored procedures
I hope this gives you some ideas and options.
这篇关于Reg:使用工具从Vb 6.0迁移到Vb.net 3.5后的性能问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!