BitCount
This commit is contained in:
parent
1f50f4c2a8
commit
816dabb009
|
|
@ -195,14 +195,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
||||||
|
|
||||||
protected override int GetCountFast()
|
protected override int GetCountFast()
|
||||||
{{
|
{{
|
||||||
var count = MaybeUnknown?.Count ?? 0;
|
return _bits.BitCount() + (MaybeUnknown?.Count ?? 0);
|
||||||
{Each(loop.Headers, header => $@"
|
|
||||||
if ({header.TestBit()})
|
|
||||||
{{
|
|
||||||
++count;
|
|
||||||
}}
|
|
||||||
")}
|
|
||||||
return count;
|
|
||||||
}}
|
}}
|
||||||
|
|
||||||
protected override StringValues GetValueFast(string key)
|
protected override StringValues GetValueFast(string key)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue