I have to randomly read records of a text file, so I preprocessed the text file, created a hash that contains record keys and position. When I want a record, I can directly seek to there.
However, I know very little about the seek operation. As my file is fairly large, does the time consumption of perl's seek is related with file size, or it's a constant time operation? Is it a costly operation?