当前在线人数17206
首页 - 分类讨论区 - 电脑网络 - 窗口里的风景版 -阅读文章
未名交友
[更多]
[更多]
文章阅读:Re: memory usage
[同主题阅读] [版面: 窗口里的风景] [作者:LodossWar] , 2003年10月21日11:54:38
LodossWar
进入未名形象秀
我的博客
[上篇] [下篇] [同主题上篇] [同主题下篇]

发信人: LodossWar (sleepycat), 信区: DotNet
标  题: Re: memory usage
发信站: Unknown Space - 未名空间 (Tue Oct 21 12:02:29 2003), 站内信件

I don't get it. It's easy to wrap c++ program to provide a web servive.
Just go for ATL Server. I have done that. It gave you good performance.
Why need to rewrite it?
So actually it is the legacy program who costs much memory. Isn't it?
1. For performance tuning, the first thing to check is algorithm. always.
2. Different languages have their performance trap. Some "easy to use" way
   may have serious performance problem. i.e. string in Java.
Just doing some research, I had cut the memory usage of a java program from
more than 200M to half.
My wife's scientific program may cost more than 2G memory if using the strai
ghtfoward way. But we made it
in 2G's scope. hehe, just change algorithm.
So,if you are really serious about the problem. Doing some research on your
algorithm
and the language performance issues.

【 在 kongzi (鸡龟骨滚羹) 的大作中提到: 】
: 【 在 LodossWar (sleepycat) 的大作中提到: 】
: : server
: 21M
: : same
: : 1. How much is 128M memory for a PC? :)
: : 2. Optimize your algorithm. find out the bottle-neck. If necessary, using
: : unmaged code for that part to save memory.
: actually the superserver is a legacy program(c++) with some new .net add-ons
: : 3. In a distributed environment, this should be ok. Just provice one server
: : for your service. The web applicaiton will call your web service.
: Yes,that's one of the ways to get things done.But for some legacy
: programs,it's
: 2 cumbersome to rewrite the whole things.:)
: : That's just my thought. Welcome comments. :)


--
※ 来源:.Unknown Space - 未名空间 mitbbs.com.[FROM: 151.201.]

[上篇] [下篇] [同主题上篇] [同主题下篇]
[转寄] [转贴] [回信给作者] [修改文章] [删除文章] [同主题阅读] [从此处展开] [返回版面] [快速返回] [收藏] [举报]
 
回复文章
标题:
内 容:

未名交友
将您的链接放在这儿

友情链接


 

Site Map - Contact Us - Terms and Conditions - Privacy Policy

版权所有,未名空间(mitbbs.com),since 1996