Caching stat() calls to files (Re: Useful code or premature optimization??)
Bernhard Reiter <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi John, Am Donnerstag 15 Juli 2021 04:26:36 schrieb John P. Rouillard: > I wonder if it is a good idea to cache the results of the stat call > to speed up the code? wouldn't the file system do that anyway, if a file is accessed often? (Honestly, I don't know, so I guess I'd make that optimation only after having done some measurements if this actually is a bottleneck at all.) Best, Bernhard -- www.intevation.de/~bernhard +49 541 33 508 3-3 Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998 Geschäftsführer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner _______________________________________________ Roundup-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/roundup-devel
signature.asc
(application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEvdlX+cT+D9xYPc1tK3ujv5vDpVQFAmE5vC8ACgkQK3ujv5vD pVSt1AwAh80iKRZgDa2NLJ5nYty8ejP+4cnRKotcGZGbtWZNltptIDD8hOtdx+RJ RU7kX8+1NTZaNBR0MV6Sg6t6rlorl1dp22VEN754DmkIbNM+FROo+8MlW6UDa8Rr 8JHU8jx3MRyw9m2EAaJN0PsXdfahIh1AbqpMPr0i4jcE2zyJYXOjAyZbHjgF8hy9 PTkbqfiscnf5UWCKTl88L1hHAgunoMta3agkPHdE48zbs5Jl2iu2XpIehQX++aTw JEcPDtYyM08cxy2jkcRyPuslCtZoNjp11J9AIAn9Lo0oX92D1vJXbCmwZxFB22rL 8Wrm5ws7HnM0/3jqmkd9+l364feJh3CkrEma/pg2MePltxYMCCof+X/IZD67DxMn tFa2oQbDL1M+LpwzBeMI3sSNdTWAGOQfip7J/wLlAsWUytwyX2z9o8e+GNDPtLYC DM/EdCkkKJRPc/Abs337EtBvaUN1nwyi1QbmwGIBQOV0jeMOJIpC8aFucmkPCEhc rDk87AAD =clH7 -----END PGP SIGNATURE-----