any resource or performance (memory or cpu) issue does this code present ?
Raj Ohadi
Ranch Hand
Joined: Jun 30, 2006
Posts: 314
posted
0
If I have a code like
When N is big number, the code keeps looping for N times. My question is --- when program loops for N times, does it eat lot of memory or what ? what kind resource problem it may cause when N is big ? what kind of performance problem it may cause (ignore the time that it takes toloop, that's not an issue) ?
It probably doesn't require a lot of memory; the many numbers can all fit into one int space, which is updated every iteration.
I suggest you change it to read
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: any resource or performance (memory or cpu) issue does this code present ?