Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extremely slow loading steam machine brochure #4958

Closed
samlh opened this issue Jun 17, 2014 · 5 comments
Closed

Extremely slow loading steam machine brochure #4958

samlh opened this issue Jun 17, 2014 · 5 comments

Comments

@samlh
Copy link

samlh commented Jun 17, 2014

http://media.steampowered.com/store/steammachines/SteamMachinesBroc_WEB.PDF

I ran out of patience a couple minutes in.

Firefox 31.0a2 (2014-06-09)
"PDF f9d89da5f9d426088edf86f954afe29 [1.3 Adobe PDF Library 10.0.1 / Adobe InDesign CS6 (Macintosh)](PDF.js: 1.0.374)"

@CodingFabian
Copy link
Contributor

Chrome PDF viewer hangs itself as well :) That PDF is a hogger

@yurydelendik
Copy link
Contributor

It has really hi-res images in it (probably embedded them directly from the 10 mega-pixel camera :)

I'm note even sure why they added _WEB prefix to the file.

@samlh
Copy link
Author

samlh commented Jun 20, 2014

Yup, I'm not surprised. It may be a fun stress-test, though :).

I'm curious whether it's the sheer memory usage, or something else that kills the viewer. If so, I wonder if it is possible to decode at lower resolution for smaller temporary image size. Either way, I'm willing to give up this pdf as a lost cause.

@yurydelendik
Copy link
Contributor

I see stripes 5475x1950 of CMYK JPEG images, lots of them.

If so, I wonder if it is possible to decode at lower resolution for smaller temporary image size.

The JPEG image could be decoded into image where 8x8 pixels replaced by single pixel. (It's easier for JPX -- the decoding can be stopped at resolutions that are smaller than original one by 2, 4, 8, etc. times) I was going to use this technique when page thumbs are painted.

@samlh
Copy link
Author

samlh commented Aug 26, 2018

Happily, the pdf eventually loads now. Firefox tab peak memory usage ~3GB. The speed is also much improved. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants