Idea to speed up the loading of the Homework Sets Editor #1652
Replies: 3 comments
-
Generally, scanning local directories does not take much time. It is the scan of the OPL that makes this take so long. So if we could just load the set definitions that are in the OPL from a pre-generated file, and always scan the local directories and exlcude Library and Contrib from that scan, that would solve the problem. |
Beta Was this translation helpful? Give feedback.
-
There is exactly one .def file in the OPL, and a bunch more in Contrib. I don't think that .def files belong in the same directories as the pg problems. If we want to accept contributed def files to the OPL, we could create a dedicated folder for them in the OPL repository, but I think it's a bad idea to have them commingled with the pg files. I think it would also be cleaner to have a dedicated place for .def files within the course directory, but that's a separate (and less important) change, since recursing through the templates folder is less of a problem. |
Beta Was this translation helpful? Give feedback.
-
Implemented by @drgrice1 in #1653. |
Beta Was this translation helpful? Give feedback.
-
In the discussion at #1585:
Maybe this can be fixed by no longer generating the list "live" and by not providing the full list of set definition files each time the Homework Sets Editor page is requested.
Instead, we could try to:
$ce->{options}->{useOPLdefFiles}
only effects whether paths undertemplates/Library
get searched.templates/Contrib
could be added to that conditional handling.templates
which should be treated as libraries to be conditionally searched. (Some courses may use additional special/shared directories" which need not be rescanned often.)Beta Was this translation helpful? Give feedback.
All reactions