mi-classroom / mi-web-technologien-beiboot-ss2024-OliverWich

mi-web-technologien-beiboot-ss2024-OliverWich created by GitHub Classroom
https://still-moving.oliverwich.de
MIT License
1 stars 0 forks source link

Optimize File I/O e.g. for getting frame names #3

Closed OliverWich closed 1 month ago

OliverWich commented 4 months ago

Only do readdir on the frames directory (and maybe on the others as well) once on project create to save IO.

Currently e.g. getting one Frame to generate/serve a thumbnail always reads the entire folder but that result is constant since this is done in the preprocessing. So this should be done once since I/O is slow.

OliverWich commented 4 months ago

Fixed in https://github.com/mi-classroom/mi-web-technologien-beiboot-ss2024-OliverWich/commit/abe3c7d97b602d0e6ff7275015e2e7771645d5f4

OliverWich commented 4 months ago

Still relevant for a bunch of other places in the Project Class