The action is just a simple image adjustment:
1. step opne image (pgm format)
2. Shadow/Highlight adjustment based on a saved parameter.
3. Save image
4. Close image.
As I can see in the task management window there is no RAM overflow, the Photoshop use 400000-404000 K RAM while the process.