Hi everybody!
I have about 10_000 files and my program reads each of them from time to time. All files have the following structure: header length, header and body. It is strange but, reading length of the header takes about 0.012 sec (I uses simple code for it: read(HANDLE,$length,4)), reading header & body about 0.005. Readin 4 bytes takes more time than whole file. Why?