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:35; helo=resqmta-ch2-03v.sys.comcast.net; envelope-from=eklhad@comcast.net; receiver= Received: from resqmta-ch2-03v.sys.comcast.net (resqmta-ch2-03v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:35]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 5D69D77AAF for ; Sun, 11 Feb 2018 15:08:03 -0800 (PST) Received: from resomta-ch2-02v.sys.comcast.net ([69.252.207.98]) by resqmta-ch2-03v.sys.comcast.net with ESMTP id l0jmeqGfqFtNCl0jmekD2O; Sun, 11 Feb 2018 23:08:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1518390526; bh=CXkrdiSmgVqdwUnw3meVHr1rzvljU8vGp1ONtAn2uio=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=hgjKKRvVzQy0t4iqDab08M4N8WliQ5mzAdtjAZGt/WUbqyTeXh5FIicwMzeIoepNf ShwnIstyWfOKY5TbXhTOOIT30kEojQLRsCb11hIQ61liytKDBEID4DFtcqOQQQdaM8 GvZGucGjxHLwM8Hln9coZ8NnswBySDHiRHgD8r/fxwoKZP+jeUjv888Eb7TxwSOGjr SmO9Q6vr4+f+z1DKVfBcpdhRA77meVkUR+OMzVJhpyGUQu0g5jxVB8QlIRpDVAoUq9 ci66xnpxaCBaj6x/HEAw2TlF3Q1a3KTPkrNPbco9GS4oJlqTQqzbZtCS0KLo3YhTre i9JPr0mK9nEXw== Received: from unknown ([IPv6:2601:408:c300:8f09:21e:4fff:fec2:a0f1]) by resomta-ch2-02v.sys.comcast.net with SMTP id l0jmeCSqrtbS7l0jmefIb8; Sun, 11 Feb 2018 23:08:46 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke References: <20180111135351.eklhad@comcast.net> <20180211194301.gx6i6nago4ietkxo@toaster> User-Agent: edbrowse/3.7.1 Date: Sun, 11 Feb 2018 18:08:46 -0500 Message-ID: <20180111180846.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=nextpart-eb-555237 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfIz1+LEy2hpASAflRFZBXf+M1YdLyLAStJvNilaa/j3HF4eiCSuINg75J8KV+wmqIdndQZmzYrd/bnZMKhLYbqwPG1tftl9qgXH6B+ZbspoGfSFvh3bR wjTq61bgsBJmlaicv6ig53+koy1pwXcfEzoNl0igfmNyAivCW5FG5imB 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 23:08:03 -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-555237 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable It's worse than we thought. I always like to build a local test. Download www.eklhad.net/csstest.zip and review. over.css: the selectors from stackoverflow.com, this is their css file. csstest: the file to browse. Browse with db3 of course. eb$qs$start comes back in jig time, which suggests the slowdown is in = traversing and testing all the nodes, not in the parsing. This test file only has 6 nodes, as shown by dumptree(document). Problems listed below. 1. There is a syntax error. Their software doesn't allow a classname to start with a dash, and yet = it can, I guess. You see the syntax error with db3. 2. Their program stops at the first error. So it only did part of the = list. 3. This error occurs at 471, out of 3198. If it had gone all the way through, on stackoverflow.com, this routine = would take 2 times 3198 / 471 =3D 13.5 minutes. So we can rightfully think of a 13.5 minute startup cost just to browse = this site. Obviously we can't live with that. There are so many issues I almost think we should rewrite it from = scratch, either in C or js. Obviously I'd use theirs as a guide, but lordy! IDK Karl Dahlke --nextpart-eb-555237--