Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
[selectors] More intuitive names for selector performance profiles #1694
Comments
dbaron
added
the
selectors-4
label
Aug 4, 2017
|
Briefly discussed in today's working group meeting. |
|
manual vs auto ? |
css-meeting-bot
commented
Aug 4, 2017
|
The CSS Working Group just discussed The full IRC log of that discussion<dauwhe> Topic: renaming selector profiles<astearns> https://github.com/w3c/csswg-drafts/issues/1694 <dauwhe> astearns: dbaron added the issue, there was some discussion during lunch, but no resolution <dbaron> github: https://github.com/w3c/csswg-drafts/issues/1694 <dauwhe> ... let's try to put realistic suggestions in the issue |
|
Suggestion: 'snapshot' for script, 'tracking' for stylesheet. |
|
static vs live-updated ? |
|
inactive vs reactive ? |
gibson042
commented
Aug 4, 2017
|
There are some analogous concepts in DOM:
The obvious static vs. live seems just as bad as static vs. dynamic, but snapshot vs. live works. |
|
"Live" for CSS-related profile sounds great to me. But first of all, I would ask if the "non-live" profile — for just one selector — is really necessary? Limiting the I believe that the most use cases for Wasn't the whole concept of "non-live" selector profile a kind of premature optimization that was relevant in the era of slower CSS engines, but isn't very helpful in our days when the performance of CSS selectors is usually negligible (comparing to other parts of the rendering process)? Wouldn't it be better to drop it at all rather that to rename it? |
|
@SelenIT Of course lots of people would love You mention other selectors which depend on nested or following elements. An implementator would know better than me, but I'm not sure these are that expensive. For What I mean is that it can be reasonable to add some specific selectors to the live profile even if they depend on nested or following elements, but |
Yup, I used
Mostly it's just that elements don't tend to have very many siblings, so recomputing isn't too expensive. This is not the case for descendants, which elements often have a lot of (and some obvious use-cases for
It's been suggested (and vaguely approved of by bz, as in he said it wasn't obviously horrible) to have something like
Yup! |
Wait, isnt't it? I've been pretty sure it is held back by implementors (at least, according to the MDN's compatibility table). I suppose it might be because browser vendors aren't very interested in implementing it because the same result in JS can already be achieved with existing tools (including Selector API — for I didn't mean that the functionality of I like the idea of separate |
fantasai
added
the
Agenda+
label
Dec 31, 2017
|
Agenda+ to consider the latest suggestion, in #1694 (comment) ; add a comment if there are other suggestions you think we should consider. :) |
added a commit
that referenced
this issue
Dec 31, 2017
atanassov
changed the title from
More intuitive names for selector performance profiles
to
[selectors] More intuitive names for selector performance profiles
Jan 2, 2018
css-meeting-bot
commented
Jan 4, 2018
|
The Working Group just discussed
The full IRC log of that discussion<dael> Topic: [selectors] More intuitive names for selector performance profiles<dael> github: https://github.com/w3c/csswg-drafts/issues/1694 <dael> fantasai: Latest was to use live for the css profile and snapshot for the one shot API calls. <aja> curious...they don't lie in @supports, too, do they? <dael> Wanted to ask if WG accepts that for if there's better ideas. <dael> florian: Sounds reasonable <dael> Rossen_: To me as well. <dael> dbaron: Do we have consensus that the snapshot profile will be used for things like query selector? <dael> fantasai: Thought it was but I'm not sure. <dael> Rossen_: Have we discussed this? Is there an issue about it? <dael> fantasai: Whole point of having that profile was to do that. I'm pretty sure given the number of times we talked about the name there was consesnus on having them. <dael> dbaron: I just remember it as a thing for selecotrs that print impl wanted. <dael> dbaron: impl producing pdfs, not interactive <dael> florian: My memory is this was for the selectors everyone wants but are deemed too slow to use in normal CSS. I think we made it forbidden to support in pdf impl. It needs to be web compat so if web can't they can't. <dael> dbaron: Makes sense. It just wasn't how I remembered the discussion. <dael> Rossen_: I suggest we resolve on issue of naming. dbaron if you feel the snapshot part needs further discussion let's bring that sep. <dael> Rossen_: In terms of naming, any obj? <dael> RESOLVED: Accept the names Live & Snapshot |
css-meeting-bot
removed
the
Agenda+
label
Jan 4, 2018
fantasai
added
the
Closed Accepted by CSSWG Resolution
label
Jan 4, 2018
fantasai
closed this
Jan 4, 2018
Marat-Tanalin
commented
Jan 7, 2018
|
Thanks, “Live”/“Snapshot” are much more clear and intuitive than previous “Dynamic”/“Static”. |
dbaron commentedAug 4, 2017
@Marat-Tanalin sent an email to www-style saying: