Generally normal programmers don't care about page faults, those will be occurred at run time of program and that degrades the performance.
This is very crucial thing that every best programmer should take care.
If you don't know what is page faults , Please visit http://en.wikipedia.org/wiki/Page_fault .
When your program is taking or requiring high memory, there are chances of high page faults.
So to minimize page faults:
1. Suppose there are different structures or objects in your program and you are checking some conditions into them or editing some values inside them. In this situation, you should group these structures and objects in one structure or object such a way that all different structures come serially in memory in one structure. So your one structure have continues memory in the system and that structure will be used more in program so the page in OS having this structure will be accessed frequently and so the page will be found in the memory most of times so the page faults will be less.
2. Same as said in point 1, if you are knowing how much memory will be required by your program at run time (or you can calculate first), you should do malloc or calloc of that memory in single call and utilize it. To utilize that memory you require small memory management unit(program- very easy program) for allocating or freeing the memory. This solution is most useful when you are creating any data structure that is not being edited at run time -just being read at run time.
Any how its up to programmers, what they want, because this thing is hidden and only clever and smarter C programmers take care.
<Sumit Kakadiya>