Missed a minor optimization as I wasn't using a parameter for the binary search method. The files I've opened don't actually hit the code path (they always hit the optimization for checking the previous/next/current line)
\n\nCommit migrated from 75f34eec60
This commit is contained in:
parent
069b409dd4
commit
c027fcf8e6
|
|
@ -138,7 +138,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
|
|||
{
|
||||
// binary search for the line containing absoluteIndex
|
||||
var lowIndex = startLineIndex;
|
||||
var highIndex = _lines.Count;
|
||||
var highIndex = endLineIndex;
|
||||
|
||||
while (lowIndex != highIndex)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue