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

Support random dropping of expensive rewrites #719

Closed
GoogleCodeExporter opened this Issue Apr 6, 2015 · 4 comments

Comments

Projects
None yet
1 participant
@GoogleCodeExporter
Copy link

GoogleCodeExporter commented Apr 6, 2015

Image rewrites are CPU intensive.  For some large sites with many images, some 
images are frequently fetched while the majority of images are infrequently 
fetched.  Optimizing every image can be wasteful for images that are unlikely 
to be fetched again soon.  

Keeping track of frequency counts for every image is a memory and complexity 
burden.  Instead, we should support random drops of image rewrites, which is 
stateless.  For instance, if 90% of image rewrites are dropped, then there is a 
10% chance of optimizing an image fetched only once, but a 99% chance of 
optimizing an image fetched 50 times. 

Original issue reported on code.google.com by jkar...@google.com on 5 Jun 2013 at 1:19

@GoogleCodeExporter

This comment has been minimized.

Copy link

GoogleCodeExporter commented Apr 6, 2015

[deleted comment]
1 similar comment
@GoogleCodeExporter

This comment has been minimized.

Copy link

GoogleCodeExporter commented Apr 6, 2015

[deleted comment]
@GoogleCodeExporter

This comment has been minimized.

Copy link

GoogleCodeExporter commented Apr 6, 2015

A new option, ModPagespeedRewriteRandomDropPercentage has been added.  

A value of 100 means that all image/CSS rewrites are dropped and a value of 50 
means that half of them are.  All images within an optimized CSS file will be 
optimized to prevent partial CSS rewrites.

This feature will be available in the next release.

Original comment by jkar...@google.com on 11 Jun 2013 at 5:11

  • Changed title: Support random dropping of expensive rewrites
@GoogleCodeExporter

This comment has been minimized.

Copy link

GoogleCodeExporter commented Apr 6, 2015

Original comment by jkar...@google.com on 13 Jun 2013 at 1:32

  • Added labels: Milestone-v29
  • Removed labels: Milestone-v27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment