[webui] do not use activexml cache but a class instance for person
authorStephan Kulow <coolo@suse.de>
Tue, 19 Jul 2011 10:46:42 +0000 (12:46 +0200)
committerStephan Kulow <coolo@suse.de>
Tue, 19 Jul 2011 19:16:28 +0000 (21:16 +0200)
commit40513a8ac50f7cf6bbd22dcef5705368c20775fd
treecf71f31f3d283ac9be2d37e3fe05e585c56a5779
parent357a376a1f65f96918dabb45a7bdf6d68eff4ccc
[webui] do not use activexml cache but a class instance for person
cache.

This makes parsing XML over and over again the same person unnecessary
and allows to cache the groups of the user within the model.

Testcase: query 50 times /project/repositories?project=kde4
Before: 26s
After: 10s
Goal: 1s
src/webui/app/models/person.rb