Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
PalmerAL committed Jan 23, 2016
1 parent 7dd8fa1 commit 6967763
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions js/bookmarksHistory/bookmarksWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,21 @@ var bookmarksInMemory = {
db.bookmarks
.each(function (bookmark) {

var t1 = performance.now();

bookmarksIndex.add({
id: bookmark.url,
title: bookmark.title || "",
body: bookmark.text || "",
url: bookmark.url,
});

var t2 = performance.now();

/*if (t2 - t1 > 400) {
console.info("bookmark is slow", bookmark, bookmark.text.length);
}*/

bookmarksInMemory[bookmark.url] = {
url: bookmark.url,
title: bookmark.title,
Expand Down

0 comments on commit 6967763

Please sign in to comment.