edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Karl Dahlke <eklhad@comcast.net>
To: Edbrowse-dev@lists.the-brannons.com
Subject: [Edbrowse-dev] It's better, but...
Date: Wed, 14 Feb 2018 09:25:04 -0500	[thread overview]
Message-ID: <20180114092504.eklhad@comcast.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 1346 bytes --]

So now I'm using my own css parser and querySelectorAll, and it's better, maybe an order of magnitude faster, and less buggy, but,
stackoverflow still takes almost 2 minutes to browse.
I keep going back to the fact that 99.9% of the time we don't need this stuff, maybe we never do.
Even the acid0 test that started all this doesn't need this stuff. it calls getComputedStyle and tests for that.
That's a one time computation of the css elements on one node.
So it makes me wonder if I'm missing the point.
Sometimes I just program along because it's fun, and a distraction from the worries in my life, of which there are many,
but that kind of head-down programming can miss the point.
Remember what I did with frames?
I don't expand a frame unless you need it.
A getter sits on top of frame and if you access frame.contentDocument it then expands the frame.
Could I do something like that with the various style objects?
If you never access them, which js hardly ever does, then I don't have to do this at all,
and if and when you do, I figure it out for that particular node.
This is harder to do than it was with frames, because you can create style objects
and they're suppose to be objects, not getters, and well just trust me it's not as easy, but still might be doable,
and that might be the right answer.

Karl Dahlke

                 reply	other threads:[~2018-02-14 14:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180114092504.eklhad@comcast.net \
    --to=eklhad@comcast.net \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).