问题描述
我正在编写WebService来预测多层次营销公司的资格.
在了解到静态类比创建实例的类要快之后,我编写了代码,该代码用于导出资格数据并将其返回给客户端使用的非静态类的WebService方法以及静态方法.
最近,一位程序员朋友告诉我,使用静态类可能会导致性能问题,因为此Web服务会受到很多打击.
感谢您提供任何反馈意见.
谢谢!
:) Anne
Hi,
I am writing a WebService to forecast qualifications for a multi-level marketing company.
After having read that static classes are faster than those that create instances, I have written the code that derives the qualification data and gives it back to the not static class''s WebService method that clients use, with static methods.
Recently a programmer friend has told me that using static classes may cause performance problems since there will be a lot of hits on this webservice.
Any feedback is appreciated.
Thanks!
:) Anne
推荐答案
这篇关于WebService:我应使用内部静态类派生结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!