Skip to content

Commit 122fd69

Browse files
committed
Improved performance of ListenerManager.notify.
1 parent 428f49f commit 122fd69

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/modules/listeners/listeners_manager.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,10 @@ void CListenerManager::UnregisterListener(PyObject* pCallable)
7979
//-----------------------------------------------------------------------------
8080
void CListenerManager::Notify(tuple args, dict kwargs)
8181
{
82-
static object callback_caller = eval("lambda func, args, kwargs: func(*args, **kwargs)");
8382
for(int i = 0; i < m_vecCallables.Count(); i++)
8483
{
8584
BEGIN_BOOST_PY()
86-
callback_caller(m_vecCallables[i], args, kwargs);
85+
m_vecCallables[i](*args, **kwargs);
8786
END_BOOST_PY_NORET()
8887
}
8988
}

0 commit comments

Comments
 (0)