From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by hurricane.the-brannons.com (Postfix) with ESMTPS id AE6C07ABB3 for ; Sat, 11 Apr 2015 08:25:34 -0700 (PDT) Received: by widjs5 with SMTP id js5so34562372wid.1 for ; Sat, 11 Apr 2015 08:23:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=XxYksMho4Zpl+n0N0bN0+xsKpJMBV97kc5ccgXRSePQ=; b=cx43TIzld32b+l2dBmhFQIob4TqDWTPDRnxzPn5Uu5RHE9tsDsVAhGnnUW6BQLBS/3 Jx/4om7ReB962yt1FrJAkaLPhISONQImTgBo4LhXCiExgfS8jyjHQPrlni7/bSP7atsx Z7PXpErAkw7qElbeMXZGJSSONN3t+BYrwdQlL03He9eztMuXgVMmbNuF860tnBdO8NOk 1Rn4Lo3WJDvWeImHAzKH8JSxrRA+Hz9jRKQ0lF1cqytsgWonwhDWBecyAG9hDX8A2KlP mhnbkSQ/q7HUXOZre3HU5zt5QXGf/rTtFsjpZGueTd285iRxoxdR2vIVeI97x6CjeeM6 D5VA== X-Received: by 10.194.47.165 with SMTP id e5mr11920759wjn.128.1428765833773; Sat, 11 Apr 2015 08:23:53 -0700 (PDT) Received: from toaster.adamthompson.me.uk (toaster.adamthompson.me.uk. [2001:8b0:1142:9042::2]) by mx.google.com with ESMTPSA id ev7sm3164060wjb.47.2015.04.11.08.23.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Apr 2015 08:23:53 -0700 (PDT) Date: Sat, 11 Apr 2015 16:23:50 +0100 From: Adam Thompson To: Karl Dahlke Message-ID: <20150411152350.GE9150@toaster.adamthompson.me.uk> References: <20150311104458.eklhad@comcast.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="l+goss899txtYvYf" Content-Disposition: inline In-Reply-To: <20150311104458.eklhad@comcast.net> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Edbrowse-dev@lists.the-brannons.com Subject: Re: [Edbrowse-dev] Short Timers X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Apr 2015 15:25:35 -0000 --l+goss899txtYvYf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Apr 11, 2015 at 10:44:58AM -0400, Karl Dahlke wrote: > There is another problem with my quick&dirty approach, > running the short timers now and then returning control to the user. > A timer that fires in 5 milliseconds, > that I decide to run now, may well queue up another timer that fires in 5 ms. > Well my software might figure: it's just 5 ms away, run it now. > It queues up another timer in 5 ms, which I run, and so on, > and suddenly I'm in an infinite loop and the user is locked out. Ouch, I hadn't thought of that. > Of course in any other browser this does something 100 times a second, > in the background, without churning the cpu, and without locking > out the user. > So whatever we decide, it has to be a bit smarter than just: > run the shor ttimers now and put the long timers under user synchronous control. > Perhaps Adam's background model or some other model. > Anyways I'm not going to mess with these for a while, > until we can all give it a bit more thought. Yeah, it's going to be a large change whatever we do. If we do go to an async approach, it'd also be kind of nice to do what most modern browsers do and fetch things in parallel as well. That'd speed up page load times which, whilst not my biggest concern with edbrowse, are starting to get overly long with some more js-heavy websites. Cheers, Adam. --l+goss899txtYvYf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVKTyGAAoJELZ22lNQBzHOrVEH/0uDjq1tBo6ygAJl6DP324fB 1RycE6+1gTKSz0CuZSu/0tbfeCpRn1myfY8grD6Nj3sHpITgMoxekKpzqElnXc/l lqg1znrPVe6dVJhAUqvJJ3BS2BGpz3yz8VCBayDF6PMSNRcGsC4ZMFKopeTAyx20 j+rbXoCoXfMT0PN5eO4w8K2+y7J4ruiYyka0O47hKvqkrIu3xV43hv+wbnnJVdK0 BnqK/v1afF+N+llaDCYhYpyH0D0JEIJe0m32Rx3iZxWc0TfPzZRIxHx7ogBBllj3 RYOWsaFWG5qBP0I2+JNlvJ8QqQDQqJukrjjTb3bND55T05xWRBsT50GZQdsJTM4= =MN13 -----END PGP SIGNATURE----- --l+goss899txtYvYf--