**[Martin Aubele](https://jira.spring.io/secure/ViewProfile.jspa?name=aubelix)** opened **[SPR-6999](https://jira.spring.io/browse/SPR-6999?redirect=false)** and commented TransactionSynchronizationManager.getSynchronizations() is a bottleneck in our Liferay Portal: List is sorted even if empty. During the whole function an array and several lists are created whithout any need. Please see the attachement for a fix. Thanks, Martin --- **Affects:** 3.0.1 **Attachments:** - [patch.txt](https://jira.spring.io/secure/attachment/16310/patch.txt) (_1.62 kB_) **Referenced from:** commits https://github.com/spring-projects/spring-framework/commit/5dc59aaa7b5c888b433636f322ed5dcfa7305418, https://github.com/spring-projects/spring-framework/commit/19b4618fb5eca3a9212caafecb1e7ad85ce78bd4