From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2001:558:fe21:29:69:252:207:41; helo=resqmta-ch2-09v.sys.comcast.net; envelope-from=eklhad@comcast.net; receiver= Received: from resqmta-ch2-09v.sys.comcast.net (resqmta-ch2-09v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:41]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 018B677AAF for ; Sun, 11 Feb 2018 10:53:08 -0800 (PST) Received: from resomta-ch2-02v.sys.comcast.net ([69.252.207.98]) by resqmta-ch2-09v.sys.comcast.net with ESMTP id kwkmeI4qkABtkkwl6eZmhU; Sun, 11 Feb 2018 18:53:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1518375232; bh=IEOw3WQv47lpguGHs7hYt75ng7hdDqZXHiCZ+OAfsgc=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=n5juM19Nfr4seg0h2+NKfdVsq4I22d1ZTpPcluB3NI8VZ4QVAyH2MJg2HiNtWYlKZ 3tM0k7SrgIVbYKNN+uhw5mqfmLlgQI/L8hfUeqgF8hUV0YS0zQhy/eLrPx0PUHo7D4 7cV3ZgmqKnLJGdINHoNV2gqtmkQYCsqQnTjPhKMxcn+wGpa+DYdVLv/xcV7NkvPpxw FN+FGOqAN1Lp2e5xTmDM3JbtwdlHyg7+oPuvMZWAPYLZIXFOa2nUHNNPr/+JY3h26b orIkujKfG74a8m+LzDdF3SRocEn9bEynamynypM/fkl8WRuwvFFsrAYXBk445+7FLu Rr86FTobH2nCw== Received: from unknown ([IPv6:2601:408:c300:8f09:21e:4fff:fec2:a0f1]) by resomta-ch2-02v.sys.comcast.net with SMTP id kwl5eBH0GtbS7kwl5eeuQf; Sun, 11 Feb 2018 18:53:51 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke User-Agent: edbrowse/3.7.1 Date: Sun, 11 Feb 2018 13:53:51 -0500 Message-ID: <20180111135351.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=nextpart-eb-139877 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfBCKKvWH9/E+FgI7XCNQjENJT/t2RA6lg9pz26BAPnKGF1rzzG89ak7Ad+n76kmEhKoxo/vCbahSlnuifMr0DT+9DvzEogfNQmpAY4CDpUEhIj48YjaD oZX6llYxDlD39YrrHlZBXdeZ5bT2Ocvqoysim06iZpOiWQGD74XquSDf Subject: [Edbrowse-dev] stackoverflow and css X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.25 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Feb 2018 18:53:09 -0000 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --nextpart-eb-139877 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable The css portion, that maps css attributes over to objects, takes 2 = minutes to run. That's not the infinite loop, but it is intolerable nonetheless. Browse www.stackoverflow.com with db3 and watch 2 minutes go by between execute eb$qs$start execution complete The version we got was built to run and handle all situations, and be = robust, but obviously not optimized. Optimizing things is something I'm good at, but it's a lot of code = doing something I'm not entirely familiar with, so I would be taking a = big bite. Could it be optimized and still be javascript? Is it primarily an = algorithmic inefficiency? Or would it have to be rewritten in C? I hope the former, because turning all that into C would be a pain! There's no real reason to mess with the css parser, that runs once and = pretty fast, but querySelectorAll compares every css directive against every node in = the document, which is potentially an n^2 problem. Karl Dahlke --nextpart-eb-139877--