mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-09-22 12:01:15 -04:00
Add commented lines to monitor the time spent in bzip2 decompression
This commit is contained in:
parent
49a12b8faf
commit
97dadfdd76
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user