06.06.2015, 16:57
Memory vs CPU
Is it worth trying to optimize scripts for memory at the cost of efficiency?
How much memory does a SA-MP server take?
On average my server takes around 150MB.In the worst case, it would go up to 200MB.I don't think if there is any server (working) which takes up more than half a gig.This amount in today's world is actually negligible.
How much memory does your server take?(Reply so that I can carry out a census)
Is it worth saving memory?
Of course, it is good to save memory whenever possible.But is it worth saving memory at the cost of efficiency?
What is your opinion?
Both memory as well as Speed is important according to me but I would avoid optimizing for memory if it takes a small cut on the efficiency.I think we need to pay more attention towards optimizing scripts for speed rather than optimizing for memory.That doesn't mean that you can waste lot of memory.
Is it worth trying to optimize scripts for memory at the cost of efficiency?
How much memory does a SA-MP server take?
On average my server takes around 150MB.In the worst case, it would go up to 200MB.I don't think if there is any server (working) which takes up more than half a gig.This amount in today's world is actually negligible.
How much memory does your server take?(Reply so that I can carry out a census)
Is it worth saving memory?
Of course, it is good to save memory whenever possible.But is it worth saving memory at the cost of efficiency?
- BitArrays take more time than simple assignments (bool variables)
- Packed Strings - takes time packing and unpacking strings
What is your opinion?
Both memory as well as Speed is important according to me but I would avoid optimizing for memory if it takes a small cut on the efficiency.I think we need to pay more attention towards optimizing scripts for speed rather than optimizing for memory.That doesn't mean that you can waste lot of memory.