| Index: third_party/WebKit/Source/devtools/front_end/sources/FilePathScoreFunction.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/sources/FilePathScoreFunction.js b/third_party/WebKit/Source/devtools/front_end/sources/FilePathScoreFunction.js
|
| index 845d6d2697ec0e3abdc3c1ff851350e36f5cbc07..7d674651259e94bc0c3a514f0b866ecb7ddb7b9a 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sources/FilePathScoreFunction.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sources/FilePathScoreFunction.js
|
| @@ -38,8 +38,8 @@ Sources.FilePathScoreFunction = class {
|
| constructor(query) {
|
| this._query = query;
|
| this._queryUpperCase = query.toUpperCase();
|
| - this._score = null;
|
| - this._sequence = null;
|
| + this._score = new Int32Array(20 * 100);
|
| + this._sequence = new Int32Array(20 * 100);
|
| this._dataUpperCase = '';
|
| this._fileNameIndex = 0;
|
| }
|
| @@ -79,7 +79,8 @@ Sources.FilePathScoreFunction = class {
|
| }
|
| if (matchIndexes)
|
| this._restoreMatchIndexes(sequence, n, m, matchIndexes);
|
| - return score[n * m - 1];
|
| + const maxDataLength = 256;
|
| + return score[n * m - 1] * maxDataLength + (maxDataLength - data.length);
|
| }
|
|
|
| /**
|
|
|