开发者

How data and memory affects execution speed?

开发者 https://www.devze.com 2023-04-11 20:21 出处:网络
If my 开发者_StackOverflow中文版application is allotted 500MB of RAM, but operates on 2GB of data, how will this work?What would be the impact on execution speed?Don\'t know - depends on what you\'re

If my 开发者_StackOverflow中文版application is allotted 500MB of RAM, but operates on 2GB of data, how will this work? What would be the impact on execution speed?


Don't know - depends on what you're doing and how your application operates on data.

You can't fit 10 pounds of anything into a 5 pound bag. You'll have to page or operate on a stream or something.

If you exhaust the memory available to you, you're likely to see an OutOfMemoryError.

Not enough information to give a real answer.


Every time it needed to access data that is outside the current 500 megabyte window, it would need to swap out to disk. That swapping process takes some time, depending on disk speed, and would potentially slow down your application.

0

精彩评论

暂无评论...
验证码 换一张
取 消