Commit Graph

20 Commits

Author SHA1 Message Date
Dan Poltawski 9ed79d1801 MDL-40585 fix trailing whitespace 2013-07-23 13:35:16 +08:00
Russell Smith 1bdb3dcd2b MDL-40585 backup: cache XML parent paths
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.
2013-07-15 19:23:13 +10:00
Eloy Lafuente (stronk7) efdb676e84 MDL-37893 Take rid of old comment. 2013-02-12 10:04:28 +01:00
Eloy Lafuente (stronk7) 553e19b443 Merge branch 'MDL-37893-grouped-empty_24' of git://github.com/mudrd8mz/moodle into MOODLE_24_STABLE 2013-02-12 10:04:12 +01:00
Eloy Lafuente (stronk7) 04116863fb MDL-37893 Always notify pending starts before dispatching chunk 2013-02-08 01:48:32 +01:00
David Mudrák 176f08e90c MDL-37893 Allow elements with no final tags to form a grouped path 2013-02-08 01:48:32 +01:00
David Mudrák 8ab37b5fca MDL-37893 Add unit test to demonstrate the issue 2013-02-08 01:48:32 +01:00
David Mudrák e57a314de8 MDL-37870 Fix the number of parameters when calling the parent constructor 2013-02-05 10:19:52 +01:00
Petr Skoda bb7898c6ab MDL-32569 convert remaining backup tests and drop old simpletests 2012-04-21 16:24:33 +02:00
Eloy Lafuente (stronk7) d4dd06591b MDL-27594 backup - out unused (and incorrect) condition + stronger tests 2011-05-24 11:55:39 +02:00
Eloy Lafuente (stronk7) 54b8f33421 MDL-27594 backup - fix start/end notifications on empty chunks 2011-05-23 00:58:45 +02:00
Eloy Lafuente (stronk7) 8298bedab7 MDL-27475 backup - fix start/end notifications order + tests 2011-05-11 20:01:13 +02:00
Eloy Lafuente (stronk7) 14e6710d99 MDL-26896 parser - add start/end path notifications 2011-04-11 02:16:58 +02:00
Petr Skoda 431ac39634 MDL-26623 fix file permissions
The permissions are now going to be verified as part of the weekly release process.
2011-03-01 12:26:49 +01:00
Eloy Lafuente (stronk7) 5539e69862 MDL-26229 restore - parser improvements (repetitions and skipped tags) 2011-02-12 02:19:02 +01:00
Eloy Lafuente e521039d22 MDL-24381 backup - avoid infinite iteration under windows caused by platform-dependent dirname() 2010-09-28 21:26:11 +00:00
Eloy Lafuente f35de25886 MDL-23796 backup - improve parser to discard whitespace-empty tags 2010-08-24 14:07:31 +00:00
Eloy Lafuente dc5a2f8a5a MDL-21432 backup - using grouped parser in moodle_backup.xml + minor changes in common stuff 2010-07-05 22:10:51 +00:00
Eloy Lafuente 4c7f6ac693 MDL-22699 restore parser - new grouped parser, useful for multilevel tags 2010-07-05 00:50:06 +00:00
Eloy Lafuente be866f9d6c MDL-22699 xml parser - to be used by restore 2010-06-07 14:40:12 +00:00