Skip to content

Commit

Permalink
Improves citation processing speed
Browse files Browse the repository at this point in the history
Prevents from unnecesarily sending the same citation to citeproc
multiple times
  • Loading branch information
adomasven committed Feb 15, 2018
1 parent bb92572 commit 00e52ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chrome/content/zotero/xpcom/integration.js
Expand Up @@ -1553,6 +1553,8 @@ Zotero.Integration.Session.prototype._updateCitations = async function () {
if (index in this.newIndices) {
citationsPost = [];
delete this.newIndices[index];
// If this item will need updating later citation processing will reset this index later in the loop
delete this.updateIndices[index];
} else {
citationsPost = citations.slice(citationToFieldIdxMapping[index]+1);
}
Expand Down

0 comments on commit 00e52ae

Please sign in to comment.