Optimize the case when only weight is changed

This commit is contained in:
Tatsuhiro Tsujikawa 2015-11-20 00:19:02 +09:00
parent ab1e8305a1
commit 3bbb05f59b
1 changed files with 5 additions and 0 deletions

View File

@ -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);
/* We have to update weight after removing stream from tree */