Re: Don't refresh file view when in background

"kaczoroj" <[email protected]> Tue, 26 Dec 2006 00:23:56 -0000
Newsgroups gmane.comp.version-control.cvs.gui.devel
Message-ID <[email protected]>
--KBboV1u8k-DsGk0IgUDg1St09uPnTkR2vqkU2NX
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Kirill,

It looks like right now we have about 1s refresh rate when in=20
foregroung and 5 seconds when in foreground. I think we could make=20
the background refresh rate configurable, setting it by default to=20
5s. You can then setup a rate of few minutes which should solve the=20
problem with compilation. Setting that rate to zero would be=20
equivalent to your suggestion of disabling background refresh.

I think good place for such an option would be where the logout=20
timeout is. The groupbox can be renamed to "Time" or something=20
similiar, the remark that timout is for password authentication can=20
be moved to help tooltip and a new "Background Refresh Rate" settings=20
can be added.

Best Regards,
Jerzy

--- In [email protected], "kirillmueller" <mail@...> wrote:
>
> Hi,
>=20
> when in flat view, WinCvs periodically refreshes the file view=20
during
> build if the intermediate directories are below the source
> directories. (Which is standard for Visual Studio.) This slows
> compilation.
>=20
> The "correct" fix would be using ReadDirectoryChangesW and refresh
> only the modified files. However, this will take some time to=20
implement.
>=20
> How about not refreshing when the app is in the background? It's a
> one-line change to the code, and once the app is put to the
> foreground, the file view is refreshed instantly. We could make this
> configurable, too -- like "Don't refresh file view when in=20
background".
>=20
>=20
> Kind regards,
>=20
> Kirill
>



--KBboV1u8k-DsGk0IgUDg1St09uPnTkR2vqkU2NX
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
</head>

<!-- Network content -->


<body style="background-color: #ffffff;">

<!--~-|**|PrettyHtmlStartT|**|-~-->
<div id="ygrp-mlmsg" style="width:655px; position:relative;">
  <div id="ygrp-msg" style="width: 490px; padding: 0 15px 0 0; float:left;  z-index:1;">
<!--~-|**|PrettyHtmlEndT|**|-~-->

    <div id="ygrp-text">
            <p>Kirill,<br>
<br>
It looks like right now we have about 1s refresh rate when in <br>
foregroung and 5 seconds when in foreground. I think we could make <br>
the background refresh rate configurable, setting it by default to <br>
5s. You can then setup a rate of few minutes which should solve the <br>
problem with compilation. Setting that rate to zero would be <br>
equivalent to your suggestion of disabling background refresh.<br>
<br>
I think good place for such an option would be where the logout <br>
timeout is. The groupbox can be renamed to &quot;Time&quot; or something <br>
similiar, the remark that timout is for password authentication can <br>
be moved to help tooltip and a new &quot;Background Refresh Rate&quot; settings <br>
can be added.<br>
<br>
Best Regards,<br>
Jerzy<br>
<br>
--- In <a href="mailto:cvsgui-dev%40yahoogroups.com">cvsgui-dev@yahoogro<wbr>ups.com</a>, &quot;kirillmueller&quot; &lt;mail@...&gt; wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt; <br>
&gt; when in flat view, WinCvs periodically refreshes the file view <br>
during<br>
&gt; build if the intermediate directories are below the source<br>
&gt; directories. (Which is standard for Visual Studio.) This slows<br>
&gt; compilation.<br>
&gt; <br>
&gt; The &quot;correct&quot; fix would be using ReadDirectoryChange<wbr>sW and refresh<br>
&gt; only the modified files. However, this will take some time to <br>
implement.<br>
&gt; <br>
&gt; How about not refreshing when the app is in the background? It's a<br>
&gt; one-line change to the code, and once the app is put to the<br>
&gt; foreground, the file view is refreshed instantly. We could make this<br>
&gt; configurable, too -- like &quot;Don't refresh file view when in <br>
background&quot;.<br>
&gt; <br>
&gt; <br>
&gt; Kind regards,<br>
&gt; <br>
&gt; Kirill<br>
&gt;<br>
<br>
</p>
    </div>  

    <!--~-|**|PrettyHtmlStart|**|-~-->
    <span width="1" style="color: white;">__._,_.___</span>
    <!-- Start the section with Message In topic -->
    <div id="ygrp-actbar">
              <span class="left">
          <a href="http://groups.yahoo.com/group/cvsgui-dev/message/1479;_ylc=X3oDMTM0N2p1bjJmBF9TAzk3MzU5NzE0BGdycElkAzI0OTMyNDUEZ3Jwc3BJZAMxNzA1MDA3MTgxBG1zZ0lkAzE0ODEEc2VjA2Z0cgRzbGsDdnRwYwRzdGltZQMxMTY3MDkyNjY1BHRwY0lkAzE0Nzk-">
            Messages in this topic          </a> (<span class="bld">2</span>)
        </span>
        <a href="http://groups.yahoo.com/group/cvsgui-dev/post;_ylc=X3oDMTJwbnBiMm9lBF9TAzk3MzU5NzE0BGdycElkAzI0OTMyNDUEZ3Jwc3BJZAMxNzA1MDA3MTgxBG1zZ0lkAzE0ODEEc2VjA2Z0cgRzbGsDcnBseQRzdGltZQMxMTY3MDkyNjY1?act=reply&messageNum=1481">
          <span class="bld">
            Reply          </span> (via web post)
        </a>  | 
        <a href="http://groups.yahoo.com/group/cvsgui-dev/post;_ylc=X3oDMTJlNG44cHA5BF9TAzk3MzU5NzE0BGdycElkAzI0OTMyNDUEZ3Jwc3BJZAMxNzA1MDA3MTgxBHNlYwNmdHIEc2xrA250cGMEc3RpbWUDMTE2NzA5MjY2NQ--" class="bld">
          Start a new topic        </a>
          </div> 
    <!-------     Start Nav Bar  ------>
    <!-- |**|begin egp html banner|**| -->
    <div id="ygrp-vitnav">
                <a href="http://groups.yahoo.com/group/cvsgui-dev/messages;_ylc=X3oDMTJlNjU3N2RkBF9TAzk3MzU5NzE0BGdycElkAzI0OTMyNDUEZ3Jwc3BJZAMxNzA1MDA3MTgxBHNlYwNmdHIEc2xrA21zZ3MEc3RpbWUDMTE2NzA5MjY2NQ--">Messages</a>  
            |    <a href="http://groups.yahoo.com/group/cvsgui-dev/files;_ylc=X3oDMTJmc2dncHNxBF9TAzk3MzU5NzE0BGdycElkAzI0OTMyNDUEZ3Jwc3BJZAMxNzA1MDA3MTgxBHNlYwNmdHIEc2xrA2ZpbGVzBHN0aW1lAzExNjcwOTI2NjU-">Files</a>  
            |    <a href="http://groups.yahoo.com/group/cvsgui-dev/photos;_ylc=X3oDMTJlMzduaXRzBF9TAzk3MzU5NzE0BGdycElkAzI0OTMyNDUEZ3Jwc3BJZAMxNzA1MDA3MTgxBHNlYwNmdHIEc2xrA3Bob3QEc3RpbWUDMTE2NzA5MjY2NQ--">Photos</a>  
            |    <a href="http://groups.yahoo.com/group/cvsgui-dev/links;_ylc=X3oDMTJmcTk2ZWVmBF9TAzk3MzU5NzE0BGdycElkAzI0OTMyNDUEZ3Jwc3BJZAMxNzA1MDA3MTgxBHNlYwNmdHIEc2xrA2xpbmtzBHN0aW1lAzExNjcwOTI2NjU-">Links</a>  
            |    <a href="http://groups.yahoo.com/group/cvsgui-dev/database;_ylc=X3oDMTJjanJob3ZxBF9TAzk3MzU5NzE0BGdycElkAzI0OTMyNDUEZ3Jwc3BJZAMxNzA1MDA3MTgxBHNlYwNmdHIEc2xrA2RiBHN0aW1lAzExNjcwOTI2NjU-">Database</a>  
            |    <a href="http://groups.yahoo.com/group/cvsgui-dev/polls;_ylc=X3oDMTJmM3RnYzgzBF9TAzk3MzU5NzE0BGdycElkAzI0OTMyNDUEZ3Jwc3BJZAMxNzA1MDA3MTgxBHNlYwNmdHIEc2xrA3BvbGxzBHN0aW1lAzExNjcwOTI2NjU-">Polls</a>  
            |    <a href="http://groups.yahoo.com/group/cvsgui-dev/members;_ylc=X3oDMTJldTliYWNiBF9TAzk3MzU5NzE0BGdycElkAzI0OTMyNDUEZ3Jwc3BJZAMxNzA1MDA3MTgxBHNlYwNmdHIEc2xrA21icnMEc3RpbWUDMTE2NzA5MjY2NQ--">Members</a>  
            |    <a href="http://groups.yahoo.com/group/cvsgui-dev/calendar;_ylc=X3oDMTJkdTJ2bXIxBF9TAzk3MzU5NzE0BGdycElkAzI0OTMyNDUEZ3Jwc3BJZAMxNzA1MDA3MTgxBHNlYwNmdHIEc2xrA2NhbARzdGltZQMxMTY3MDkyNjY1">Calendar</a>  
    </div>  
    <!-- |**|end egp html banner|**| -->

    <!-- Do not have place to put it yet -->
    <div id="ygrp-grft">
          </div>

    <!-- yahoo logo -->
    <!-- |**|begin egp html banner|**| -->
    <div id="ygrp-ft">
      <a href="http://groups.yahoo.com/;_ylc=X3oDMTJkMDczdDI5BF9TAzk3MzU5NzE0BGdycElkAzI0OTMyNDUEZ3Jwc3BJZAMxNzA1MDA3MTgxBHNlYwNmdHIEc2xrA2dmcARzdGltZQMxMTY3MDkyNjY1">
      <img src="http://us.i1.yimg.com/us.yimg.com/i/yg/img/logo/ma_grp_160.gif" height="15" width="106" border="0" alt="Yahoo! Groups"></a> <br>
      <a href="http://groups.yahoo.com/group/cvsgui-dev/join;_ylc=X3oDMTJmZTNtMnQxBF9TAzk3MzU5NzE0BGdycElkAzI0OTMyNDUEZ3Jwc3BJZAMxNzA1MDA3MTgxBHNlYwNmdHIEc2xrA3N0bmdzBHN0aW1lAzExNjcwOTI2NjU-">Change settings via the Web</a> (Yahoo! ID required) <br>
      Change settings via email: <a href="mailto:[email protected]?subject=Email Delivery: Digest">Switch delivery to Daily Digest</a> | <a href = "mailto:[email protected]?subject=Change Delivery Format: Traditional">Switch format to Traditional</a> <br>

      <a href="http://groups.yahoo.com/group/cvsgui-dev;_ylc=X3oDMTJkcG9qYTdhBF9TAzk3MzU5NzE0BGdycElkAzI0OTMyNDUEZ3Jwc3BJZAMxNzA1MDA3MTgxBHNlYwNmdHIEc2xrA2hwZgRzdGltZQMxMTY3MDkyNjY1">
        Visit Your Group 
      </a> |
      <a href="http://docs.yahoo.com/info/terms/">
        Yahoo! Groups Terms of Use      </a> |
      <a href="mailto:[email protected]?subject=">
        Unsubscribe      </a> 
    </div>     <!-- |**|end egp html banner|**| -->
  </div> <!-- ygrp-msg -->

  
  <!-- Sponsor -->
  <!-- |**|begin egp html banner|**| -->
  <div id="ygrp-sponsor" style="width:140px;float: left; clear: none; margin-left: 5px; background:white; margin-bottom:25px ;position:absolute; top:0; right: 0;">
    <!-- Network content -->
    
    <!-- Start vitality -->
    <div id="ygrp-vital">
            <a href="http://groups.yahoo.com/group/cvsgui-dev;_ylc=X3oDMTJlazNucDZiBF9TAzk3MzU5NzE0BGdycElkAzI0OTMyNDUEZ3Jwc3BJZAMxNzA1MDA3MTgxBHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTE2NzA5MjY2NQ--">
        Visit Your Group      </a>
    </div> 
                <div id="hd">SPONSORED LINKS</div>
      <div id="ov">
        <ul>
                    <li><a href="http://groups.yahoo.com/gads;_ylc=X3oDMTJjOWppcnBjBF9TAzk3MzU5NzE0BF9wAzEEZ3JwSWQDMjQ5MzI0NQRncnBzcElkAzE3MDUwMDcxODEEc2VjA3NsbW9kBHN0aW1lAzExNjcwOTI2NzE-?t=ms&k=Software+development+services&w1=Software+development+services&w2=Software+development&w3=Development+software&w4=Software+development+company&w5=Custom+software+development&c=5&s=154&g=2&.sig=7x2qo6dMYy1p5AU1pt1tiQ">Software development services</a></li>
                    <li><a href="http://groups.yahoo.com/gads;_ylc=X3oDMTJjNHRndHU5BF9TAzk3MzU5NzE0BF9wAzIEZ3JwSWQDMjQ5MzI0NQRncnBzcElkAzE3MDUwMDcxODEEc2VjA3NsbW9kBHN0aW1lAzExNjcwOTI2NzE-?t=ms&k=Software+development&w1=Software+development+services&w2=Software+development&w3=Development+software&w4=Software+development+company&w5=Custom+software+development&c=5&s=154&g=2&.sig=BN1lrlsQSEiIXBpRBgFwvg">Software development</a></li>
                    <li><a href="http://groups.yahoo.com/gads;_ylc=X3oDMTJjNWtja2N0BF9TAzk3MzU5NzE0BF9wAzMEZ3JwSWQDMjQ5MzI0NQRncnBzcElkAzE3MDUwMDcxODEEc2VjA3NsbW9kBHN0aW1lAzExNjcwOTI2NzE-?t=ms&k=Development+software&w1=Software+development+services&w2=Software+development&w3=Development+software&w4=Software+development+company&w5=Custom+software+development&c=5&s=154&g=2&.sig=tCpQXu3D1f1U1uy5lsC3_g">Development software</a></li>
                    <li><a href="http://groups.yahoo.com/gads;_ylc=X3oDMTJjbnNzdXRyBF9TAzk3MzU5NzE0BF9wAzQEZ3JwSWQDMjQ5MzI0NQRncnBzcElkAzE3MDUwMDcxODEEc2VjA3NsbW9kBHN0aW1lAzExNjcwOTI2NzE-?t=ms&k=Software+development+company&w1=Software+development+services&w2=Software+development&w3=Development+software&w4=Software+development+company&w5=Custom+software+development&c=5&s=154&g=2&.sig=vprGpfTz1GxuQRXlltd5Og">Software development company</a></li>
                    <li><a href="http://groups.yahoo.com/gads;_ylc=X3oDMTJjbjBjajZzBF9TAzk3MzU5NzE0BF9wAzUEZ3JwSWQDMjQ5MzI0NQRncnBzcElkAzE3MDUwMDcxODEEc2VjA3NsbW9kBHN0aW1lAzExNjcwOTI2NzE-?t=ms&k=Custom+software+development&w1=Software+development+services&w2=Software+development&w3=Development+software&w4=Software+development+company&w5=Custom+software+development&c=5&s=154&g=2&.sig=GblHBdeKJR4WCTYIwY_tYA">Custom software development</a></li>
                  </ul>
      </div>
    
    <!-- Network content -->
                <div id="nc">
              <div class="ad">
                      <div id="hd1">Y! Messenger</div> 
<p><a href="http://us.ard.yahoo.com/SIG=12iok7b2l/M=493064.9803215.10510209.8674578/D=groups/S=1705007181:NC/Y=YAHOO/EXP=1167099870/A=3848581/R=0/SIG=11umg3fun/*http://us.rd.yahoo.com/evt=42403/*http://messenger.yahoo.com">Instant hello</a></p> 
<p>Chat in real-time</p> 
<p>with your friends.</p>                  </div>
                    <div class="ad">
                      <div id="hd1">Yahoo! Mail</div> 
<p><a href="http://us.ard.yahoo.com/SIG=12ieiul0g/M=493064.9803214.10510208.8674578/D=groups/S=1705007181:NC/Y=YAHOO/EXP=1167099870/A=3848568/R=0/SIG=12jllrvsk/*http://us.rd.yahoo.com/evt=42409/*http://advision.webevents.yahoo.com/handraisers">Next gen email?</a></p> 
<p>Try the all-new</p> 
<p>Yahoo! Mail Beta.</p>                  </div>
                    <div class="ad">
                      <div id="hd1">Search Ads</div> 
<p><a href="http://us.ard.yahoo.com/SIG=12iabnlmu/M=493064.9803227.10510220.8674578/D=groups/S=1705007181:NC/Y=YAHOO/EXP=1167099870/A=3848641/R=0/SIG=1312g85fq/*http://searchmarketing.yahoo.com/arp/srchv2.php?o=US2003&cmp=Yahoo&ctv=Groups2&s=Y&s2=&s3=&b=50">Get new customers.</a></p> 
<p>List your web site</p> 
<p>in Yahoo! Search.</p>                  </div>
          </div>
      
  </div>   <!-- |**|end egp html banner|**| -->
  <div style="clear:both; color: #FFF; font-size:1px;">.</div>
</div> <img src="http://geo.yahoo.com/serv?s=97359714/grpId=2493245/grpspId=1705007181/msgId=1481/stime=1167092665/nc1=3848581/nc2=3848568/nc3=3848641" width="1" height="1"> <br>
<span  style="color: white;">__,_._,___</span>
<!--~-|**|PrettyHtmlEnd|**|-~-->
</body>
<!--~-|**|PrettyHtmlStart|**|-~-->
<head>
<style type="text/css">
<!--
#ygrp-mlmsg {font-size:13px; font-family: arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;*font-size:100%;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
    font-family: Georgia;	
}
#ygrp-text p{
    margin: 0 0 1em 0;
}
#ygrp-tpmsgs{
    font-family: Arial;	
    clear: both;
}
#ygrp-vitnav{
	padding-top: 10px;
	font-family: Verdana;
	font-size: 77%;
	margin: 0;
}
#ygrp-vitnav a{
	padding: 0 1px;
}
#ygrp-actbar{
	clear: both;
	margin: 25px 0;
	white-space:nowrap;
	color: #666;
	text-align: right;
}
#ygrp-actbar .left{
	float: left;
	white-space:nowrap;
}
.bld{font-weight:bold;}
#ygrp-grft{
	font-family: Verdana;
	font-size: 77%;
	padding: 15px 0;
}
#ygrp-ft{
  font-family: verdana;
  font-size: 77%;
  border-top: 1px solid #666; 
  padding: 5px 0; 
}
#ygrp-mlmsg #logo{
  padding-bottom: 10px;
}

#ygrp-vital{
	background-color: #e0ecee;
	margin-bottom: 20px;
	padding: 2px 0 8px 8px;
}
#ygrp-vital #vithd{
	font-size: 77%;
	font-family: Verdana;
	font-weight: bold;
	color: #333;
	text-transform: uppercase;
}
#ygrp-vital ul{
	padding: 0;
	margin: 2px 0;
}
#ygrp-vital ul li{
  list-style-type: none;
  clear: both;
  border: 1px solid #e0ecee;  
}
#ygrp-vital ul li .ct{
  font-weight: bold;
  color: #ff7900;
  float: right;
  width: 2em;
  text-align:right;
  padding-right: .5em;
}
#ygrp-vital ul li .cat{
  font-weight: bold;
}
#ygrp-vital a {
	text-decoration: none;
}

#ygrp-vital a:hover{
  text-decoration: underline;
}

#ygrp-sponsor #hd{
	color: #999;
	font-size: 77%;
}
#ygrp-sponsor #ov{
	padding: 6px 13px;
	background-color: #e0ecee;
	margin-bottom: 20px;
}
#ygrp-sponsor #ov ul{
	padding: 0 0 0 8px;
	margin: 0;
}
#ygrp-sponsor #ov li{
	list-style-type: square;
	padding: 6px 0;
	font-size: 77%;
}
#ygrp-sponsor #ov li a{
	text-decoration: none;
	font-size: 130%;
}
#ygrp-sponsor #nc {
  background-color: #eee;
  margin-bottom: 20px;
  padding: 0 8px;
}
#ygrp-sponsor .ad{
	padding: 8px 0;
}
#ygrp-sponsor .ad #hd1{
	font-family: Arial;
	font-weight: bold;
	color: #628c2a;
	font-size: 100%;
	line-height: 122%;
}
#ygrp-sponsor .ad a{
	text-decoration: none;
}
#ygrp-sponsor .ad a:hover{
	text-decoration: underline;
}
#ygrp-sponsor .ad p{
	margin: 0;
}
o {font-size: 0; }
.MsoNormal {
   margin: 0 0 0 0;
}
#ygrp-text tt{
  font-size: 120%;
}
blockquote{margin: 0 0 0 4px;}
.replbq {margin:4}
-->
</style>
</head>
<!--~-|**|PrettyHtmlEnd|**|-~-->
</html><!--End group email -->


--KBboV1u8k-DsGk0IgUDg1St09uPnTkR2vqkU2NX--