错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Exploring Genetic Improvement of the Carbon Footprint of Web Pages

  • Haozhou Lyu,
  • Gregory Gay,
  • Maiko Sakamoto

摘要

In this study, we explore automated reduction of the carbon footprint of web pages through genetic improvement, a process that produces alternative versions of a program by applying program transformations intended to optimize qualities of interest. We introduce a prototype tool that imposes transformations to HTML, CSS, and JavaScript code, as well as image resources, that minimize the quantity of data transferred and memory usage while also minimizing impact to the user experience (measured through loading time and number of changes imposed). In an evaluation, our tool outperforms two baselines—the original page and randomized changes—in the average case on all projects for data transfer quantity, and 80% of projects for memory usage and load time, often with large effect size. Our results illustrate the applicability of genetic improvement to reduce the carbon footprint of web components, and offer lessons that can benefit the design of future tools.