summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_djb_hash.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2019-11-14 17:48:48 +0300
committerValentin Bartenev <vbart@nginx.com>2019-11-14 17:48:48 +0300
commitb3db7a30c0c248616945926e1692e0601d0bbec6 (patch)
treedf3415350976af983d0ea32d363917c7c9071262 /src/nxt_djb_hash.h
parent75c2c23bb6cd95a9e08d89f74e6457321d266ed2 (diff)
downloadunit-b3db7a30c0c248616945926e1692e0601d0bbec6.tar.gz
unit-b3db7a30c0c248616945926e1692e0601d0bbec6.tar.bz2
Python: optimized response object close() calling.
PyObject_HasAttrString() is just a wrapper over PyObject_GetAttrString(), while PyObject_CallMethod() calls it as the first step. As a result, PyObject_GetAttrString() was called twice if close() was present. To get rid of PyObject_HasAttrString() while keeping the same behaviour, the PyObject_CallMethod() call has been decomposed into separate calls of PyObject_GetAttrString() and PyObject_CallFunction().
Diffstat (limited to 'src/nxt_djb_hash.h')
0 files changed, 0 insertions, 0 deletions