MDL-55272 lib: Improve test course create performance
authorRussell Smith <mr-russ@smith2001.net>
Tue, 19 Jul 2016 00:39:50 +0000 (10:39 +1000)
committerRussell Smith <mr-russ@smith2001.net>
Tue, 16 Aug 2016 02:00:21 +0000 (12:00 +1000)
commit6a3acc84defae7d5be8e68cb9d02dca92138f490
tree5c451e09159c688ae26bebfb4ca4cf2b2da2d22b
parent7752762674c1211e00c5d24045c065c41f5bc662
MDL-55272 lib: Improve test course create performance

Use core functions that are faster for test file creation.
To support large requests for hashes, the core hash function
must support large hashes without recursion.  PHP has a default
recursion depth of 100 and long hashes don't support this.

Remove transactions as they create performance problems for larger
courses and doesn't introduce significant benefit for developers.

Performance changes meant the times were much faster, a reasonable
guess was taken on performance of an average machine.
admin/tool/generator/classes/course_backend.php
admin/tool/generator/lang/en/tool_generator.php
lib/classes/event/role_assigned.php
lib/moodlelib.php
lib/tests/moodlelib_test.php