Commit 3bbb05f5 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Optimize the case when only weight is changed

parent ab1e8305
...@@ -660,6 +660,11 @@ int nghttp2_session_reprioritize_stream( ...@@ -660,6 +660,11 @@ int nghttp2_session_reprioritize_stream(
} }
} }
if (dep_stream == stream->dep_prev && !pri_spec->exclusive) {
stream->weight = pri_spec->weight;
return 0;
}
nghttp2_stream_dep_remove_subtree(stream); nghttp2_stream_dep_remove_subtree(stream);
/* We have to update weight after removing stream from tree */ /* We have to update weight after removing stream from tree */
......
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