From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-x244.google.com (mail-lf0-x244.google.com [IPv6:2a00:1450:4010:c07::244]) by hurricane.the-brannons.com (Postfix) with ESMTPS id BEDD07913E for ; Tue, 31 Jan 2017 11:26:36 -0800 (PST) Received: by mail-lf0-x244.google.com with SMTP id v186so34755457lfa.2 for ; Tue, 31 Jan 2017 11:27:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=+ZbvQPCKKXRDDdV8nMIPdjtJ35I+izoYwo0JobPkwn8=; b=uDw6OcHXHRaARdl0qUepKxFgQLpTUHxBI8Soha18H+o6cq51tKKEE46GNrbkhb8qSs hk/9airOOrBRx7TI20XD6af4J1AMDyMSs7dh9b/+6DtZ3TWzAgLmOetgLHmO9u3K+lv+ SoLG9ykUZlaDZZ+xL8YLUUgggEoMtnsWvu0/h16x8i7FidMjlB3qqHGT2DTDUe6cFc1E UdPdm6/GJQ0gQ6qhGllilAHTS8flSM7bMcS2bYXftaqQZd+Dil+hTbzcszXsJcwGP+uR VqmhEYyRRe+j41P708tUQM922JxSIdHHMfG+0XouPOGiDuU3kRY6EljX7OCeCnY8lKpc a0LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=+ZbvQPCKKXRDDdV8nMIPdjtJ35I+izoYwo0JobPkwn8=; b=rXbl5CHGlJkX/zQLKmb8bkLiZ2MpcL4hp1GvqjQR1MA7+OjiW6t+rYV91SUfR3F2NG a+GElB7dMGFPkyHJOWRVc8Z9Q29chNZ9ygpZZwTodKGWS7CrpcdSWCX+ISO11er7UGVo XV8/VRrUtf3bO8/jZMEol75xY3akDza+6N71cNj4+4gBsoIHIvIoW+ZvoSzZYedFJ2R7 wAgHTRLxSRmUy7od1x5jj7AeLnYGv5eTF7vyt+QKKaio7VErFw7VwsmQr6k9YyIm23cj 4sbLhxTBi3jTntg6avv2z+N1tCJQhacpZ2D2Xm+4pUjJbqRna6ZpNKZlvzUI3YNgXdV8 Gl8Q== X-Gm-Message-State: AIkVDXK75qZEwNSZW8O+ZHkEjzzFYVNl92ZczRSFV/tDvYnOscAL4l+PQRMrMd0yWCWLRQ== X-Received: by 10.25.23.204 with SMTP id 73mr10281867lfx.29.1485890848213; Tue, 31 Jan 2017 11:27:28 -0800 (PST) Received: from odin (odin.sdf-eu.org. [178.63.35.194]) by smtp.gmail.com with ESMTPSA id 206sm4824565ljf.35.2017.01.31.11.27.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jan 2017 11:27:26 -0800 (PST) Date: Tue, 31 Jan 2017 19:27:12 +0000 From: Adam Thompson To: Karl Dahlke Cc: Edbrowse-dev@lists.the-brannons.com Message-ID: <20170131192711.GB2022@odin> References: <20170030060040.eklhad@comcast.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HWvPVVuAAfuRc6SZ" Content-Disposition: inline In-Reply-To: <20170030060040.eklhad@comcast.net> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [Edbrowse-dev] Churning Timers X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.23 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 19:26:37 -0000 --HWvPVVuAAfuRc6SZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Thanks for fixing this, along with the attributes stuff. As an interesting note, if you use the latest version on: http://acid3.acidtests.org It's fairly clear that the page loads, gets rendered, then blanked by some = js breakage. I've yet to see an error in the output but I've not had time to = do much checking with this new code. On Mon, Jan 30, 2017 at 06:00:40AM -0500, Karl Dahlke wrote: > Ok,here is the problem of the day. > If you don't apply my latest push / fix, and go to this site, it locks yo= u out in what seems like an infinite loop. > You can type and type and nothing happens. > Hit control c and get the usual "type qt to quit" message, but still you = have no access. > You have to kill the process. At least that's what happens over here. >=20 > http://www.huffingtonpost.com/entry/the-inevitability-of-impeachment_us_5= 88e8d52e4b0b065cbbcd09f >=20 > I thought my code was traversing a broken tree forever, again, or some su= ch, but no. > I fixed those problems. > This site has a half doesn't timers, actually intervals, that fire every = 50ms. > My implementation is sufficiently slow, or perhaps I have the wrong prior= ities on select() channels, or some such, that I am locked out. > As a bandaid, I now wait at least 230ms before running timers. > That is the latest push. > It's just a couple lines of code. > I actually don't think this is a bad idea. > Timers firing every 50ms almost surely exist to render fast visual effect= s, which are lost on us. > If it takes a couple minutes to read a message on the screen, or understa= nd what part of the screen has changed, > then there's just no reason to change the screen 20 times a second. > Slowing down the process fixes the problem. > I can enter commands and edbrowse responds. > Type db4 and oh yes you can see the timers firing, and the screen rerende= ring, even though nothing on the screen changes. > Type db1 to go back to quiet. > It works, though even at this level it consumes 10% of my processor. > If I happen to have 10 such web pages open, either in parallel or pushed = up onto the stack, the whole processor is churning. > So we don't have a clear solution yet. > Obviously the real browsers fire these timers 20 times a second without m= aking a dent in cpu usage and without blocking user input. > No idea how they do it. >=20 > Anyways, the web page works now, and as for its contents, I can only hope= he's right. >=20 > Karl Dahlke > _______________________________________________ > Edbrowse-dev mailing list > Edbrowse-dev@lists.the-brannons.com > http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev --HWvPVVuAAfuRc6SZ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJYkOUPAAoJED6sZNk+oYF/+UwP/RAoShP/gR53mGHEVWNHDuar IrIx4XYabfPdEQ5Pl8FNgHLiPmE7mz0W3KpRl5ah7DG41KKmkHahouVk/L2VhG8I 3E9EZrR10RaD2JkZEb1QkoEu3s3DMrcL4qQVw873ywBgcRQqDhkDJlwCy0j2EyCW BF9I46+WOlZwkNS2bpRX+spRfJ315elUfdJALCLYATo8i7B0vb+QbkcoMRa4yboT rfqVMAI1Nsley/6qECLcWoSJLAKFV5/Z1s55gJ8PfMbBcpeWNcxuGxOvA4LvPVhV mS9SAwfU209rl2tUy2MbeGJW1YScOn+XasAWiUU5Bub/IqWiK8hXDX2lzbtJTJ1M aStGJXKM+kVfmqrqo1yqaYUumk1TAoLGx6Mq8Mtt+CfZbl8h1Xbxi8zME9vjLAte gnUq9UFITcqouGlWDr12s8dUVF9NX9sf2bVrDQqKnFFG2S0tMtLfK5Qr8tFCSauq JlTY452SQmZ9zgc/5Bhvp5H2UtWQOCCEzmhBpEgBn1L3j6frqjYLKDRGqs1xQFEL VW8uAQFMaiU0j7HDlwFmxexvaA2CCCWfS9Ec/0IDdvGIXb06nlfOZdbreKkT2CD+ 1TzVLQdIqMgq8xDH3q48g3BLiZOhdpzCaK0rSUtxrcFU7AZ/1q43tX/ieVBynIoE A9XP9FgRu5pcsFl9cHrY =+NjV -----END PGP SIGNATURE----- --HWvPVVuAAfuRc6SZ--