mkxml / vscode-filesize

filesize package for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=mkxml.vscode-filesize
MIT License
60 stars 13 forks source link

Large files taking long time to update #6

Closed mkxml closed 6 years ago

mkxml commented 6 years ago

Sometimes when you open a large file it may take a long time to update the size, making it seems like the extension is showing wrong information.

The problem is that fs call seem to take longer as the file size go up.

I'm will work on a solution that may involve showing a temporary Loading... text.

mkxml commented 6 years ago

Looks like gzip is being calculated when the file is opened, this can take a while. In atom-filesize it is calculated only when detailed info is shown. Will take this approach here too.

mkxml commented 6 years ago

Apparently there's nothing wrong with the extension, VSCODE seems to delay extension updates to do other stuff and it becomes more apparent in large files.