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] nasa slow
Date: Sat, 10 Feb 2018 06:51:58 -0500	[thread overview]
Message-ID: <20180110065158.eklhad@comcast.net> (raw)

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

Using my local instance of nasa.gov, so I don't have to keep crawling on the internet,
I find the output is the same with or without several js files, and with or without the two css files, but,
without css the page browses in 6 seconds, with css it takes a minute 10.
Frustrating, since 99% of the time we don't need css anyways, but if we ever need it then I guess we have to do it.
There's an initial 6 seconds setting up css on the web page, I can live with that I guess, but all the rest comes from calls to getComputed Style().
I print g at the start of that routine, and h at the end, and almost all the time is spent between g and h.
Worse still, I'm using third party software that I don't want to mess with.
Yet I might have to, at some level, because we can't live with this much inefficiency.
querySelectorAll is running through the entire document tree, evaluating each node against each css selector, when it only has to examine one node in particular, the one passed to getComputedStyle.
But the traversal seems implicit to the third party software.
I can't tell it to look at just one node.
I'm not sure what to do here.

Karl Dahlke

             reply	other threads:[~2018-02-10 11:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-10 11:51 Karl Dahlke [this message]
2018-02-11  5:04 ` Kevin Carhart
2018-02-11  6:31   ` Karl Dahlke
2018-02-11  7:00     ` Kevin Carhart
2018-02-11 16:50       ` Adam Thompson

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=20180110065158.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).