Commit dc2879ea authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

jqueue: Cache prepared field list in _JobChangesChecker



… instead of re-calculating it on every file change.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent 12e0ee0d
......@@ -570,7 +570,7 @@ class _JobChangesChecker(object):
@param prev_log_serial: previous job serial, as passed by the LUXI client
"""
self._fields = fields
self._squery = _SimpleJobQuery(fields)
self._prev_job_info = prev_job_info
self._prev_log_serial = prev_log_serial
......@@ -584,7 +584,7 @@ class _JobChangesChecker(object):
assert not job.writable, "Expected read-only job"
status = job.CalcStatus()
job_info = job.GetInfo(self._fields)
job_info = self._squery(job)
log_entries = job.GetLogEntries(self._prev_log_serial)
# Serializing and deserializing data can cause type changes (e.g. from
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment