4teamwork/opengever.core — pull request #561 by jone (2014-09-19 07:09:15+00:00)
Title: disable QuickInstallerTool events in testing for speed boost.

Patches Products.CMFQuickInstallerTool:
Removes the quickinstaller's subscribers to GenericSetup events
which create snapshots for each installed profile.

The snapshots are used for uninstalling products, which is ususally
not done in tests.

Creating the snapshots consume quite a lot of time.
Disabling it speeds up the testing layer setup time.

We do an early monkey patch so that the event registration still works
and the Plone fixture also profits from the patch.
It is a marmoset patch so that we don't have to cope with function pointers.

## Performance:

```
Without patch:
time ./bin/test -t test_filing_number_fields_is_hidden_in_site_without_filing_number_support
./bin/test -t 24.06s user 3.68s system 99% cpu 27.764 total

With QuickInstallerTool patch:
time ./bin/test -t test_filing_number_fields_is_hidden_in_site_without_filing_number_support
./bin/test -t 17.22s user 3.56s system 99% cpu 20.841 total
```

@phgross :wink: