Re: Useful code or premature optimization??

Bernhard Reiter <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
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?

Probably not, as often accessed read files will be cached on the filesystem 
level efficiently. But as always it depends on the frequencies of read versus 
write.

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+D9xYPc1tK3ujv5vDpVQFAmDv/DMACgkQK3ujv5vD
pVTf3Qv/cvJfcctVK3QbXfOpGLnKgdGVZ9vV37IjPNd2xOfBfG7MgsVhgCTep+CT
5/YTMepCWeCFJhny28Om0Y4/QpTOkMU6qTNNmmkTpzkRsfvBAQ6bNRpZPywwZdey
vsQJ7IASZhJ0E4C32hMZevq5a40Yszc5T4/gI/8ouUKMZ+r1eZ04QQ0ac5ufJ0BB
xdNCY+rcuMW0X/DkYZBkOHM1IoRlgiYsmlbqvgAOmkedGL1Oo7SSmLIzfOjPt6+k
ba68fXEVMZXJiws+bQ6v3P5pkfX8niecD0XXxZdU4z4O9C+0evD1BpFz4evRQhMi
XwYxdAWDdQte7E4CXR3Fg6PLKLXoJTEr6rBompKWyh9qWOyJjN9VuTtjSpGPJAWg
8Sjzk72khF0m7RLJTK698TnRNUjoxvDtC64Nz85c7GK2o2fe8oxsV7UCZMQ4TKkA
KUajVyhNVzrHLuTZ2yVcJJz2iWZOJOtJ/+iITNa+2Ygj45b1Rxsq0qZmmBeiEAqu
+Dd1O9kS
=J0iK
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.