ããããã¿ããéã人ã«ã¨ã£ã¦Firefox 5ã¯ç¦é³ã¨ãªãâ¦ãã
ãç¾å¨ã®ã¦ã§ãã¢ããªã¯HTMLã¨JavaScriptã§æ§æããããä¸è¬çãªãã¹ã¯ãããã¢ããªã§è¨ããã¼ã«ãããã®é¨åã«ç¸å½ããã®ãHTMLã§ããããããããã®çµã¿åããã§ã¯ããã¹ã¯ãããã¢ããªã¨æ¯ã¹ã¦åããªãã¤ãã³ããå¤ããsetIntervalã§å®æçã«ãã³ãã©ãå¼ã³åºãã¦ç¶æ
ããã§ãã¯ãããã¨ãããã¯ããã¯ããã使ãããã
ãã¦ã§ãã¢ããªå´ããã¯èªåãä»ããã¯ã°ã©ã³ãã¿ãã«ããã®ãããã©ã¢ã°ã©ã¦ã³ãã¿ãã«ããã®ãã¯ããããªããããsetIntervalã¯å¸¸ã«å¼ã°ãã¦ãããã¿ããæ°ååéããç¶æ
ã§ã¯ãããã¯ã°ã©ã¦ã³ãã§ä½¿ããããªãã¦ã§ãã¢ããªã®ãã³ãã©ãæãããåæ°å¼ã³åºããã¦ããããCPUãæµªè²»ãã¦ãã¾ããã¨ããäºãèµ·ããå¾ãã
ããããããã®ç¶æ³ã¯Firefox 5ã«ãã£ã¦å¤ãããããããªãããµã¨ã©ããã§è¦ã¤ããã®ã ããFirefoxã®Flight Trackingã¨ãããã¼ã¸ãçºãã¦ãããã
- Bug 614733 - Do exponential backoff on background tab refresh drivers
- Bug 633421 - Clamp setTimeout/setInterval to something higher than 10ms in inactive tabs
ãã¨ãããããããã§ãã¯ã¤ã³ããã¦ãããã¨ã«æ°ã¥ããã
ããããã®ãããã¯ãçºãã¦ã¿ãã¨ããã«ããã¨ãåè
ãããã¯ã°ã©ã¦ã³ãã¿ãã§ã®ãªãã¬ãã·ã¥ã®åæ°ãææ°çã«æ¸ããã¨ãããã®ã§ãå¾è
ãããã¯ã°ã©ã¦ã³ãã¿ãã§ã®setTimeout/SetIntervalã®ç²åº¦ãèããããã¨ãããã®ã§ããã
ããªãã¬ãã·ã¥ã¨ããã®ãå
·ä½çã«ã©ãããæä½ãªã®ãã¯ããããªããããªãããã®æä½ãå¼ã³åºãããã¨ãããã¨ã¯CPUãé£ããã¨ã¯ééããªãããã§ããã®æä½ã®åæ°ãææ°çã«æ¸ãããã¨ã¯CPU使ç¨çã®åæ¸ã«è²¢ç®ããã ããã
ãå¾è
ã«é¢ãã¦ããã¦ã§ãã¢ããªã¯é常é常ã«çãåä½ï¼10msã50msãããï¼ã§setIntervalãè¡ã£ã¦ããã®ã§ããã®å¼ã³åºãåæ°ãæ¸ãããã¨ã¯CPU使ç¨çã«å¤§ããªå½±é¿ãããã¯ãã§ããã
ãå¾è
ã¯Bug 532904ã«ãåæ§ã®å
容ãããã®ã ãããã¡ãã«æ¸ããã¦ããã³ã¡ã³ããè¦ãã¨ããMost of these are doing absolutely nothing I care about other than wasting about 30% of the cycles on one of my CPU cores and draining my laptop batteryãã¨ãæ¸ãã¦ãã£ã¦ãããã2009å¹´ããæ°ã«ãã¦ã人ã¯å±
ããã ãªãã¨ãã¡ãã£ã¨ææ
¨æ·±ãã2009å¹´ã¨ããã¨ãã¡ããã©ç§ãGoogleのトップページを開くと毎秒100回JavaScriptが実行されるよã¨ããè¨äºãæ¸ãã¦ãã£ã¹ãããããã¦ããé ã§ããã
ãã¨ã¯è¨ãããããã®ããããå®éã«ã©ããããå¹ããã¯è©¦ãã¦ã¿ãã¾ã§ããããªããFirefox 5ã®ãªãªã¼ã¹ã楽ãã¿ã«ãªã£ã¦ããã