From 97dadfdd7697a805f18cdc03836ba87e36a069bb Mon Sep 17 00:00:00 2001 From: mossroy Date: Tue, 18 Jun 2013 09:33:28 +0200 Subject: [PATCH] Add commented lines to monitor the time spent in bzip2 decompression --- js/lib/evopedia.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/lib/evopedia.js b/js/lib/evopedia.js index e40cde3e..1db98322 100644 --- a/js/lib/evopedia.js +++ b/js/lib/evopedia.js @@ -423,8 +423,11 @@ define(function(require) { var compressedArticles = e.target.result; var htmlArticles; try { + //var startTime = new Date(); htmlArticles = bzip2.simple(bzip2.array(new Uint8Array( compressedArticles))); + //var endTime = new Date(); + //console.log("Time elapsed in bzip2 decompression of article " + title.name + " : " + (endTime - startTime) + " ms"); } catch (e) { // TODO : there must be a better way to differentiate real exceptions // and exceptions due to the fact that the article is too long to fit in the chunk