From: Mrmaster Mrmaster Date: 2009-06-17T02:27:34+09:00 Subject: Which is more expensive Rename or Move? Hello, I'd like to create a ruby script that parses emails(that will grow with volume) and I need to find a way to distinct which emails the script touches. I can either rename the email after the script is done with it or move it to another directory. Which would be a least costly operation or are they both equal expensive? Would you have any other suggestions for this problem? The way I understand it is that when you rename or change directory you are just changing the path. I will be using a linux box(ubuntu) and I think the directories are stored in a tree structure in which rename would be less expensive. Thank you -- Posted via http://www.ruby-forum.com/.