~maria-captains/maria/mariadb-5.1-knielsen

Viewing all changes in revision 3089.

  • Committer: knielsen at knielsen-hq
  • Date: 2011-07-31 20:25:37 UTC
  • Revision ID: knielsen@knielsen-hq.org-20110731202537-0v8qbzoy9ov2yy0q
Speed up mysql-test-run.pl.

Problem was the parsing of test suite files for various tags and options.
This was done inefficiently, and include files were re-parsed for every
place they were included. This caused a delay of 20 seconds or so before
the first test started to run.

By parsing more efficiently and re-using first parse for subsequent
inclusion of the same file, time spent parsing is reduced to less than
1 second, and start appears instantaneous.

(With this patch, full ./mtr runs in 3 minutes on my laptop (release
build.)

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: