hibernate/hibernate-search — pull request #236 by Sanne (2012-02-17 01:03:32+00:00)
Title: HSEARCH-1045

While the ContextualException2WayBridge was very useful to spot problems with bridges, it was being very expensive as some instances where created almost each time a field needed to be converted during indexing, during query construction, or during projection/id loading.

I've done this in steps, first trying to reuse them, then trying to make sense of the resulting mess.

I should likely need to squash some parts? I've kept it mostly separated so that you can follow my sequential refactorings if needed.

The final result is a very significant reduction of runtime object allocation; combined with the CLOB patches merged in core this is almost doubling indexing performance on small text fragments.