Optimize the case when only weight is changed
This commit is contained in:
parent
ab1e8305a1
commit
3bbb05f59b
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue