Skip to content

Commit

Permalink
batch media lookups, eliminate base64ing
Browse files Browse the repository at this point in the history
  • Loading branch information
djahandarie committed Oct 13, 2024
1 parent d50932d commit 7553db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/js/language/translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ export class Translator {
if (frequencies.length > 1) { this._sortTermDictionaryEntrySimpleData(frequencies); }
if (pronunciations.length > 1) { this._sortTermDictionaryEntrySimpleData(pronunciations); }
}
const withUserFacingInflections = this._addUserFacingInflections(language, dictionaryEntries);
performance.mark('translator:findTerms:end');
performance.measure('translator:findTerms', 'translator:findTerms:start', 'translator:findTerms:end');
const withUserFacingInflections = this._addUserFacingInflections(language, dictionaryEntries);

return {dictionaryEntries: withUserFacingInflections, originalTextLength};
}
Expand Down

0 comments on commit 7553db1

Please sign in to comment.