Skip to content

Commit

Permalink
Fix another performance bug which now allows to load bib databases ve…
Browse files Browse the repository at this point in the history
…ry quickly (5 sec vs. 60 sec for 40k entries)
  • Loading branch information
simonharrer committed Apr 4, 2016
1 parent 4ff51e8 commit a36921a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public synchronized EntrySorter getSorter(Comparator<BibEntry> comp) {
* Returns whether an entry with the given ID exists (-> entry_type + hashcode).
*/
public boolean containsEntryWithId(String id) {
return entries.stream().anyMatch(entry -> entry.getId().equals(id));
return allKeys.containsKey(id);
}

public List<BibEntry> getEntries() {
Expand Down

0 comments on commit a36921a

Please sign in to comment.