Mercurial > kallithea
comparison setup.py @ 4748:b91c5a6327bd
comments: optimize notification creation
.append to the sqlalchemy collection is apparently expensive. Setting the
reference the other way around is much faster. Adding a notification for a
single user goes from 0.25 s to 0.001 s.
On a slow repo and a pullrequest with 14 reviewers, adding a comment goes from
8.5 s to 0.8 s.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 06 Jan 2015 00:54:36 +0100 |
parents | b1679034b6c4 |
children | 953ee49f3b30 |
comparison
equal
deleted
inserted
replaced
4747:89bf1b081cc6 | 4748:b91c5a6327bd |
---|