Commit f589f4d
http2: streamline OnStreamRead streamline memory accounting
* avoid consecutive decrement/increment session memory calls.
* only Resize the buffer when it is needed.
* flip `stream_buf_offset_` condition to the LIKELY case.
PR-URL: #30351
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent a534058 commit f589f4dCopy full SHA for f589f4d
File tree
Expand file treeCollapse file tree
1 file changed
+11
-9
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
1 file changed
+11
-9
lines changedOpen diff view settings
Collapse file
+11-9Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1902 | 1902 | |
1903 | 1903 | |
1904 | 1904 | |
1905 | | - |
| 1905 | + |
| 1906 | + |
| 1907 | + |
| 1908 | + |
| 1909 | + |
1906 | 1910 | |
1907 | 1911 | |
1908 | 1912 | |
| ||
1911 | 1915 | |
1912 | 1916 | |
1913 | 1917 | |
| 1918 | + |
| 1919 | + |
| 1920 | + |
| 1921 | + |
| 1922 | + |
| 1923 | + |
1914 | 1924 | |
1915 | 1925 | |
1916 | 1926 | |
1917 | 1927 | |
1918 | | - |
1919 | | - |
1920 | | - |
1921 | | - |
1922 | 1928 | |
1923 | 1929 | |
1924 | | - |
1925 | | - |
1926 | | - |
1927 | | - |
1928 | 1930 | |
1929 | 1931 | |
1930 | 1932 | |
|
0 commit comments