From: Matt Leotta <mleotta@le...> - 2004-04-03 08:11:09
I have recently noticed that the vgui_style_factory can make some vgui
applications VERY inefficient. Specifically, the problem is with the
multimap from styles to soviews. Before each soview is deleted or a new
style is assigned this multimap is searched exhaustively to remove
corresponding old entries. This is a huge performance hit when deleting
or changing the styles on a tableau with thousands of soviews. On top
of that, this mapping from styles to soviews doesn't seem to be needed
anymore. In fact, the vgui_style_factory itself doesn't seem to provide
much functionality other than it is in charge of creating and deleting
I propose the use of smart pointers with vgui_style to eliminate the
need for vgui_style_factory. I believe Amitha suggested this last year
when Mark Johnson made some related changes in vgui. If there are no
objections I will make these changes in vgui and wherever needed in
contrib. However, unlike Mark Johnson's changes, this would not be
entirely transparent to the vxl community.
Does anyone have any opinions on this matter? Does anyone actually use
the style_factory to look up soviews based on their style? Is there an
alternate solution that will solve this problem? It seems the style
factory has been the source of problems for a while now.
From: Gehua Yang <yangg2@rp...> - 2004-04-06 17:11:04
> Does anyone have any opinions on this matter? Does anyone actually use
> the style_factory to look up soviews based on their style? Is there an
> alternate solution that will solve this problem? It seems the style
> factory has been the source of problems for a while now.
The style factory had been causing problems on our part. I agree it should
Get latest updates about Open Source Projects, Conferences and News.