发信人: 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
and the language performance issues.
【 在 kongzi (鸡龟骨滚羹) 的大作中提到: 】
: 【 在 LodossWar (sleepycat) 的大作中提到: 】
: : server
: : 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
: 2 cumbersome to rewrite the whole things.:)
: : That's just my thought. Welcome comments. :)
※ 来源:．Unknown Space - 未名空间 mitbbs.com．[FROM: 151.201.]