diff options
author | Valentin Bartenev <vbart@nginx.com> | 2019-11-14 17:48:48 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2019-11-14 17:48:48 +0300 |
commit | b3db7a30c0c248616945926e1692e0601d0bbec6 (patch) | |
tree | df3415350976af983d0ea32d363917c7c9071262 /src/nxt_conf_validation.c | |
parent | 75c2c23bb6cd95a9e08d89f74e6457321d266ed2 (diff) | |
download | unit-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_conf_validation.c')
0 files changed, 0 insertions, 0 deletions