How can I find out, or does anybody know, if is faster storing/reading a file with Spanish/Greek/Cyrilic/etc... characters like mi-foto-españa-oíóáaç.jpg
than mi-foto-espana-oioaac.jpg
?
Asked
Active
Viewed 109 times
1

w0rldart
- 217
- 1
- 2
- 14
-
Make a script that does it a million times and time it ? :) – Antoine Benkemoun Mar 17 '13 at 12:52
-
1Good point, I'll give a try later – w0rldart Mar 17 '13 at 12:57
-
Sure, benchmark it. But I would be very surprised if the name of the file made any difference at all. Why do you suspect it might? – Celada Mar 17 '13 at 13:01
-
1@Celada I was just curious... latter I will benchmark the same thing but for apache, see if any difference there. – w0rldart Mar 17 '13 at 13:03
1 Answers
3
I doubt very much that the name of the file will affect the read/write speed of the system to a file. The reason being that once the file is open all actions on it take place through the file descriptor (fd) and the name is not used.

user9517
- 115,471
- 20
- 215
- 297
-
Furthermore, the filename is just a byte string on Linux. No conversion between character sets will occur – Alastair McCormack Jul 12 '13 at 15:11