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:43; helo=resqmta-ch2-11v.sys.comcast.net; envelope-from=eklhad@comcast.net; receiver= Received: from resqmta-ch2-11v.sys.comcast.net (resqmta-ch2-11v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:43]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 0038777A9A for ; Thu, 15 Feb 2018 00:16:41 -0800 (PST) Received: from resomta-ch2-11v.sys.comcast.net ([69.252.207.107]) by resqmta-ch2-11v.sys.comcast.net with ESMTP id mEjQeGdTC9nyFmEjTePZqT; Thu, 15 Feb 2018 08:17:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1518682651; bh=rF+pon6j9qt8q609NkXuC4nUPwEzZvK64Ji+vldCztc=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=ZK9duQqQzaPakq8kM0mtpoFfS3e+3Oo+5nZLXqA9/o8yjTnksXA+b9+YEZjhsCyU3 hSP9fdnZFLldwvgVRZtTgcSR3qz9bzTXXfL4MXsMGXMqC1AbCSmUxVf5Ipt15TXO+o rtcnuJg9CI/Vj2KMrom0UXsEQGYt6k7xgIXVkK9cgEvXQM34W/odTs9R+oVZHNBiV9 gpyhWRP+Y6LCAYytNSfifjOAxAnhjf/fR2HzA5tU2YRvXs/79hjWToW3coh5s8ANtg TTQW0hffhNrRSRf6Z5YgMx/nH74UzTr1dWDqyd6VCj4+6UQWoibwGvbxjoGyGPucFC UsTEOzGQsc+2A== Received: from unknown ([IPv6:2601:408:c300:8f09:21e:4fff:fec2:a0f1]) by resomta-ch2-11v.sys.comcast.net with SMTP id mEjSev2asEcHBmEjTe5M27; Thu, 15 Feb 2018 08:17:31 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke References: <20180114105901.eklhad@comcast.net> User-Agent: edbrowse/3.7.1 Date: Thu, 15 Feb 2018 03:17:30 -0500 Message-ID: <20180115031730.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfI/INQ7n94/hRIKITyoV9CaJSNdI7OZp0b0iklSxzA+25NV/GkSWsN97sE8cRKLI6I7G6AU+tMRCABaF7swBG7o6A7wEuRTw+BBgVGtPQ/ezwhFWQswd vO9pVOBSjnPCTzs48DRnGeShal09kHNKUrXxdQY7Pzfg+rPkNiGd/leZ Subject: [Edbrowse-dev] css on demand 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: Thu, 15 Feb 2018 08:16:42 -0000 > I was just in startwindow - that's a ton of work! Yeah, too bad some of it was wasted. :) You know the mantra, "A moment of thought is worth a megabyte of programming." I slightly forgot that, just because I like to program. I implemented hashing by nodes, hashing by class name, optimizations for certain chains, blah blah blah, and then I realized I didn't need any of that if I was gathering css elements on demand, and then I realized I couldn't support it anyways, if querySelectorAll is dynamic, if it is suppose to query the document tree as it stands right now, and nodes are always changing, with new nodes added, so a snapshot cache we build at the start isn't really going to help, and maintaining that cache as each new node is added etc is rather prohibitive, so anyways that was 200 tricky lines of code that I wrote, then threw away within 24 hours, but other than that, you know, the other 750 lines are good, and represent real progress. I'm about to delete the jotform stuff, cause I'm pretty sure we're not gonna use it, and as others have pointed out in this list, if we change our mind it's all in git. Karl Dahlke