f27cb59c36c81663f7b254d15b86ac4cbc3b06d6
For $this->groupedpaths, using a key is faster as there is no need to do in_array searches. Parent cache allows dirname calls to be substantially reduced. 2048 was chosen as a cache size as this class operates on chunks of the restore at a time, 8k questions produces a parent cache of about 500 paths and uses 300K of memory. Scaling up to 2048 will use about 1.2M of RAM for really large restores. This is acceptable for the 48% function call reduction and the 10% runtime improvement seen.
QUICK INSTALL ============= For the impatient, here is a basic outline of the installation process, which normally takes me only a few minutes: 1) Move the Moodle files into your web directory. 2) Create a single database for Moodle to store all its tables in (or choose an existing database). 3) Visit your Moodle site with a browser, you should be taken to the install.php script, which will lead you through creating a config.php file and then setting up Moodle, creating an admin account etc. 4) Set up a cron task to call the file admin/cron.php every five minutes or so. For more information, see the INSTALL DOCUMENTATION: http://docs.moodle.org/en/Installing_Moodle Good luck and have fun! Martin Dougiamas, Lead Developer
Description
Languages
PHP
85.9%
JavaScript
9.2%
Gherkin
2.3%
CSS
1.2%
Mustache
1%
Other
0.3%