optimize OutputEventFilter for large stdout streams

update our event data search algorithm to be a bit lazier in event data
discovery; this drastically improves processing speeds for stdout >5MB

see: https://github.com/ansible/awx/issues/417
This commit is contained in:
Ryan Petrello
2018-01-16 10:52:12 -05:00
parent 2b1d2b2976
commit 51f7907a01
4 changed files with 71 additions and 10 deletions

View File

@@ -147,7 +147,7 @@ class CallbackBrokerWorker(ConsumerMixin):
from pprint import pformat
logger.info('Body: {}'.format(
highlight(pformat(body, width=160), PythonLexer(), Terminal256Formatter(style='friendly'))
))
)[:1024 * 4])
def _save_event_data():
for key, cls in event_map.items():