Add commented lines to monitor the time spent in bzip2 decompression

This commit is contained in:
mossroy 2013-06-18 09:33:28 +02:00
parent 49a12b8faf
commit 97dadfdd76

View File

@ -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