concrete5/concrete5 — pull request #1771 by ForestMist (2014-05-09 07:32:13+00:00)
Title: Backup speed optimization

Backups made before and after changes produced identical files but with one important difference. The new code runs 15% faster! Well, 15% faster on my test server using various sized databases. Results may vary of course.

I believe the bulk of the speed improvement comes from not checking the MetaType of each field on each and every row traversal. We only check it once per table now and reuse that information for each row.

The remaining speed boost probably comes from not running the unneeded MoveFirst and while loop starting on line 68.

Questions, comments and concerns all very welcome!

If all looks good I will be very happy to submit a similar pull request to the concrete 5.7 dev repo too. ^_^