GitHub user vmamidi opened an issue:
https://github.com/apache/trafficserver/issues/1336
cache promote plugin takes too much calculating size of LRUList
pstack shows that cache promote plugin spends lot of time calculating too
much time in determining the size of LRUList
#0 std::__distance<std::_List_const_iterator<std::pair<LRUHash, unsigned
int> > > (__last=..., __first=...) at
/opt/gcc/include/c++/4.9.3/bits/stl_iterator_base_funcs.h:83
#1 std::distance<std::_List_const_iterator<std::pair<LRUHash, unsigned
int> > > (__last=..., __first=...) at
/opt/gcc/include/c++/4.9.3/bits/stl_iterator_base_funcs.h:118
#2 std::list<std::pair<LRUHash, unsigned int>,
std::allocator<std::pair<LRUHash, unsigned int> > >::size (this=0x2b37fe095c58)
at /opt/gcc/include/c++/4.9.3/bits/stl_list.h:887
using a length variable should make it not dependent on stl list
implementation
----
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---