| ▲ | bongodongobob a year ago | |||||||||||||||||||||||||||||||
Why would you blindly trust any code? Did you tell it to optimize for speed? If not, why are you surprised it didn't? | ||||||||||||||||||||||||||||||||
| ▲ | nottorp a year ago | parent | next [-] | |||||||||||||||||||||||||||||||
So, most low level functions that enumerate the files in a directory return a structure that contains the file data from each file. Including size. You already have it in memory. Your brilliant AI calls another low level function to get the file size on the file name. (also did worse stuff but let's not go into details). Do you call reading the file size from the in memory structure that you already have a speed optimization? I call it common sense. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
| ▲ | johnnyanmac a year ago | parent | prev [-] | |||||||||||||||||||||||||||||||
>Why would you blindly trust any code? because that is what the market is trying to sell? | ||||||||||||||||||||||||||||||||