Bug 1369604: Add additional comments to Highlights performance changes. r=mcomella

MozReview-Commit-ID: A5uzxbKisWF

--HG--
extra : rebase_source : dd1f11bdde21094c7bcb0ba7e4b329cbd1d32152
This commit is contained in:
Michael Comella 2017-07-28 18:06:48 -07:00
Родитель 2a18f14708
Коммит 89be7ed01c
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -39,7 +39,7 @@ public class Highlight implements Item {
private long historyId;
private @Nullable Metadata metadata;
private @Nullable Metadata metadata; // lazily-loaded.
private @Nullable final String metadataJSON;
private @Nullable String fastImageURL;
private int fastDescriptionLength;

Просмотреть файл

@ -90,6 +90,9 @@ public class HighlightsRanking {
/**
* Create a list of highlights based on the candidates provided by the input cursor.
*
* THIS METHOD IS CRITICAL FOR HIGHLIGHTS PERFORMANCE AND HAS BEEN OPTIMIZED (bug 1369604):
* please be careful what you add to it!
*/
public static List<Highlight> rank(Cursor cursor, int limit) {
List<HighlightCandidate> highlights = extractFeatures(cursor);