mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
Page:
Meeting 2013 09 09
Pages
Adding a new WebIDL binding
Alternative Logo Proposals and Related Swag
Asynchronous WebAssembly compilation project
Austin Oxidation
Autogeneration of style structs
Basic SVG support project
Beginner's guide to rebasing and squashing
Benchmarking
Benchmarks
Bots
Browser Engine Research
Build Errors FAQ
Buildbot administration
Building for Android
Building for Magic Leap
Building for UWP
Building on ARM desktop Linux
Building
CI Services we use
CSS parse error reporting
CSSOM student project
Canvas rendering project
Cargo upgrade service project
Code rust concurrency
Code Review
Code of Conduct
Coding standards
Compiler upgrade recipes
Compositor Layer Design
Contributing
Control Servo using WebDriver
Creating and viewing WARC web archives in Servo
Creating new OpenSSL Windows binary distributions
Cross compiling from linux to mac
Crowbot
Css selector matching meeting 2013 07 19
DOM Design
DOM documentation
DOM missing pieces
Debugging JS web compat issues
Debugging and editing tools
Debugging
Design
Developer tools student project
Devtools CSS errors
Devtools plans
Devtools
Diagnosing SpiderMonkey JIT issues
Eric Atkinson visit 2013 09 10
Events and sundry
Expand HTTP request response monitoring
Fetch improvement project
Firefox Reality release notes
FirefoxReality build
Firewall setup for servo master1
Focus student project
Form validation student project
GSoC project brainstorming
Garbage collected DOM
Getting started with layout
GitHub Labels
Github & Critic PR handling 101
Github workflow
Glossary
Governance
Graphics toolkit integration
HTML parser improvement project
HTMLElement binding conversion
HTTP archive support project
HTTP library requirements
Hawaii Rooting
High priority content for layout
Highfive
HoloLens 2 test plan
Home
How to generate GStreamer binaries for CI
Image load conformance student project
Image maps project
Implement HTML charset parsing project
Implement ImageBitmap project
Implement missing WebAudio automation student project
Implement support for missing XMLHttpRequest APIs
Implement worker modules
Implementing a web standard (RGSoC)
Improve specification conformance of unicode bidi library
Incremental flow tree construction
Infrastructure
Integrate xml5ever
Intern project brainstorming
Intern projects
JS objects, wrappers, and cross origin concerns 2013 08 07
Layout 2020
Layout Overview
Layout resources
Layout revamp ideas
Leo meyerovich visit 2013 07 22
Linux sandboxing
London Oxidation
London Security
Meeting 2014 10 27
Meeting 2014 12 08
Meeting 2012 02 08
Meeting 2012 02 16
Meeting 2012 07 20
Meeting 2013 04 01
Meeting 2013 04 15
Meeting 2013 04 22
Meeting 2013 04 29
Meeting 2013 05 06
Meeting 2013 05 13
Meeting 2013 05 20
Meeting 2013 06 03
Meeting 2013 06 10
Meeting 2013 06 14
Meeting 2013 06 17
Meeting 2013 06 24
Meeting 2013 07 01
Meeting 2013 07 15
Meeting 2013 07 22
Meeting 2013 07 29
Meeting 2013 08 05
Meeting 2013 08 12
Meeting 2013 08 19
Meeting 2013 09 09
Meeting 2013 09 16
Meeting 2013 09 23
Meeting 2013 09 30
Meeting 2013 10 14
Meeting 2013 10 21
Meeting 2013 10 28
Meeting 2013 11 04
Meeting 2013 11 18
Meeting 2013 11 25
Meeting 2013 12 02
Meeting 2013 12 09
Meeting 2013 12 16
Meeting 2014 01 06
Meeting 2014 01 13
Meeting 2014 01 21
Meeting 2014 01 27
Meeting 2014 02 03
Meeting 2014 02 10
Meeting 2014 02 24
Meeting 2014 03 10
Meeting 2014 03 17
Meeting 2014 03 24
Meeting 2014 03 31
Meeting 2014 04 07
Meeting 2014 04 14
Meeting 2014 04 21
Meeting 2014 04 28
Meeting 2014 05 05
Meeting 2014 05 13
Meeting 2014 05 19
Meeting 2014 06 09
Meeting 2014 06 17
Meeting 2014 06 23
Meeting 2014 06 30
Meeting 2014 07 07
Meeting 2014 07 14
Meeting 2014 07 21
Meeting 2014 07 29
Meeting 2014 08 04
Meeting 2014 08 11
Meeting 2014 08 12
Meeting 2014 08 18
Meeting 2014 08 25
Meeting 2014 09 08
Meeting 2014 09 15
Meeting 2014 09 22
Meeting 2014 09 29
Meeting 2014 10 06
Meeting 2014 10 13
Meeting 2014 10 20
Meeting 2014 11 10
Meeting 2014 11 17
Meeting 2014 11 24
Meeting 2014 12 15
Meeting 2015 01 05
Meeting 2015 01 12
Meeting 2015 01 26
Meeting 2015 02 09
Meeting 2015 02 23
Meeting 2015 03 02
Meeting 2015 03 16
Meeting 2015 03 30
Meeting 2015 04 06
Meeting 2015 04 13
Meeting 2015 04 27
Meeting 2015 05 04
Meeting 2015 05 11
Meeting 2015 05 18
Meeting 2015 06 01
Meeting 2015 06 08
Meeting 2015 06 15
Meeting 2015 07 06
Meeting 2015 07 13
Meeting 2015 07 27
Meeting 2015 08 10
Meeting 2015 08 17
Meeting 2015 08 24
Meeting 2015 08 31
Meeting 2015 09 14
Meeting 2015 09 21
Meeting 2015 09 28
Meeting 2015 10 05
Meeting 2015 10 12
Meeting 2015 10 19
Meeting 2015 10 26
Meeting 2015 11 02
Meeting 2015 11 09
Meeting 2015 11 16
Meeting 2015 11 30
Meeting 2016 01 04
Meeting 2016 01 11
Meeting 2016 01 25
Meeting 2016 02 01
Meeting 2016 02 08
Meeting 2016 02 22
Meeting 2016 03 07
Meeting 2016 03 21
Meeting Devtools Servo 2
Meetings
Microdata project
Minutes Hackathon 2012 03 27
Missing DOM features project
More ServiceWorker support project
More developer tools student project
Mozlandia Automation
Mozlandia B2S
Mozlandia JS
Mozlandia Rust In Gecko
Mozlandia WPT
Mozlandia gfx
Mozlando Devtools Servo
Mozlando Oxidation
Mozlando SM Servo
Mozlando Servo Bluetooth
Mozlando Servo MagicDOM
Mozlando Servo SMStrings
Mutation observer project
Mutation testing project
NCSU student projects
Network security project
Off main thread HTML parsing project
Offscreen canvas improvements project
Offscreen canvas project
Orlando Oxidation 2018
Oxidation 2015 11 05
Persistent sessions student project
Preparing ARM libraries for CI
Priority of CSS properties
Priority of DOM implementation
Priority of dom bindings
Private browsing student project
Profiling
Project proposal deadlines
Prototype JS form controls student project
Prototype ways of splitting the script crate
Publishing a new ANGLE NuGet version
Publishing a new app store release
Push vs Pull for caching
Random web content project
Refactor GLES2 student project
Refactor bluetooth support student project
Remaining work
Removing push notifications from IRC hooks
Replace C libraries student project
Report new contributors project
Representation of computed style
Research
Reviewer
Roadmap
Running Web Platform Tests on Servo
Rust HTML parser
Rust SpiderMonkey debugger API
Rust cssparser code walk 2013 08 02
SaltStack Administration
San Francisco Oxidation
Servo Benchmarking Report (December 2024)
Servo Benchmarking Report (November 2024)
Servo Benchmarking Report (October 2024)
Servo Layout Engines Report
Servo and SpiderMonkey Report
Servo for Gecko Developers
Specification Links
SpiderMonkey related tasks
SpiderMonkey infodump
SpiderMonkey upgrade details
Storage student project
Streaming webassembly student project
Strings
Student project brainstorm
Student projects
Styling overview
Stylo hacking guide
Summer of Code 2014: Implement XMLHttpRequest
Summer of Code 2016: Fetch API
Summer of Code 2016: File support
Summer of Code 2016: ServiceWorker infrastructure
Summer of Code projects
Summit meeting 2013 09 09
Support WebDriver based tests project
Syncing web platform tests (WPT)
TaskCluster
Testing
Tools
Tracking intermittent failures over time project
Transcription Notes from Servo Architecture talk in Suwon
Transcription notes from rust patterns talk in suwon
Transcription parallelism
Transcription rust concurrency
Transcription rust runtime
Transription layout and acid2
Trinity College Dublin student projects
UPenn student projects
Updating the Rust compiler used by Servo
Upgrading non taskcluster linux CI machines
Upgrading the UWP gstreamer binaries
Upgrading the windows LLVM binaries
Upgrading wptrunner
Using DOM types
Using Rust Spidermonkey Prototype
Using WebWorker Prototype
Version 0.1
Videos and presentations
WebAudio JS interfaces student project
WebAudio nodes student project
WebCompatBug
WebSocket student project
Webdriver student project
Webdriver tests student project
Webrender Overview
Whistler 2019 notes
Whistler Bugzilla
Whistler FFOS
Whistler GFX
Whistler Houdini1
Whistler Houdini2
Whistler Necko
Whistler Oxidation 2019
Work items for new contributors
Workweek COW DOM
Workweek alt js
Workweek android arm
Workweek boot 2 servo
Workweek compiler lints
Workweek displaylist
Workweek dogfooding
Workweek encoding
Workweek generated content
Workweek governance
Workweek graphics stack
Workweek graphics toolkit
Workweek incremental layout
Workweek js bindings status
Workweek layers
Workweek layers2
Workweek pixels
Workweek rasterization
Workweek reftests
Workweek roadmap
Workweek script crate
Workweek security
Workweek string interning
Workweek tables
Workweek writing modes
XML parser student project
infra triage notes
jQuery status
webxr.today support
Clone
1
Meeting 2013 09 09
Jack Moffitt edited this page 2013-09-09 11:26:14 -07:00
Servo Meeting 2013-09-09
Agenda
- crashes
- incremental flow tree construction
- test harness / dromaeo / etc
- strings
- spidermonkey c api
Attending
azita, bz, jdm, jack, pcwalton, brson, kmc, lbergstrom, bholley
crashes
- kmc: two crashes left related to shutting down glfw before skia. we seem to be valgrind clean except for things relating to that. should be fixed soon
incremental flow tree construction
- pcwalton: https://github.com/mozilla/servo/wiki/Incremental-flow-tree-construction
- jack: how are frame trees constructed in gecko?
- bz: when nodes are added removed there are listeners that call Frameconstructor asynchronously. something changes, post an event, when it fires mark the subtree that needs a new frame. there are bits that say whether descendants need frames construtor or if the ndoe needs a frame constructed. you walk down the tree and constrcut what you need to do.
- pcwalton: do you reuse frame?
- bz: in gecko, there is a dom tree, a frame tree, and a layout tree. various style changes will dirty layout but not require reconstrcuting frames. the process is described covers the case where hte frame tree needs to change.
- pcwalton: if you add a dom node, it will flag the parent as needing frames updated?
- bz: when you add a dom node, it flags the node as 'this needs a frame' and the anscestors as 'some kid needs a frame'. frame construction is a two step process. you construct a representation of what you plan to create (frame construction items), then you figure out it's ok to create them in place or rejigger a bigger part of the frame tree. reusing them turned out to be really complicated so we switched to this thing.
- bz: the webkit approach is interesting. it makes some things harder (table anonymous boxes, etc) since you need non-local analysis.
- pcwalton: webkit approach isn't easily parallelizable, virtual methods allowed to do whatever they want
- bz: could be parallelizable, all frame constructor elements independent of each other
- bz: reason frame construction isn't bottom up in gecko is ... there's inherent top-down in operation (inheritance). in general if you have node with no interesting kids you know what kind of box you make. as you go up, you figure out what parents need to do
- pcwalton: interesting is what output of current function is. each dom node doesn't correspond to a flow, but it corresponds to a box (inlines collapsed to parent box), need place to hang temporary result of flow tree construction. if have nested inlines, may correspond to multiple temp flows that could be collapsed. not sure exactly how will work.
- bz: we try to construct as few frame construction items as possible in gecko. don't creat ethem for entire subtree, only for things that need them (ie. blocks inside inlines). worst case: body contains unclosed span. want to decide quickly whether to reconstruct span without creating frames for every child.
- pcwalton: decide if we need ib splits early, optimize that case in incremental construction.
- bz: consider "display on outside" versus "display of my kids" — e.g. inline-block is outside inline, kids are block
test harness / dromaeo
- jack: what benchmark tests should we be using?
- bz: dromaeo has js tests which you can ignore. it has css tests, which are tests of jquery performance. to some extent those are gated on js, but if we were significantly slower on those than equiv spidermonkey than perhaps it's worth looking at. it has dom tests which are micro-benchmarks for fast path through dom bindings, but not worth obsessing over. really focused on DOM side, not much layout interaction.
- pcwalton: is the maze solver worthwhile?
- bz: it has a whole bunch of divs that are positioned offscreen adn then onscreen by setting transforms. it sets a class and has some inline style. pcwalton: it sovle the maze using javascript?
- bz: yes. but the main performance cost is the divs. in gecko if you changed transforms it has to reframe and then relayout the parent, and then you have to relayout all 900 divs every time. and the repainting sucked. maze solver falls back to absolute positioning if transforms don't work.
- bz: peacekeeper is very hard to work with. there's a lot of js stuff in there. i wouldn't worry about for now.
- pcwalton: also seems pretty canvasy.
- jack: we've fixed the blockers for dom bindings performance (scheduler, ffi wrappers). should we revive the benchmarking work we were doing?
- pcwalton: yes.
- brson: there's one missing piece of the scheduler. spidermonkey can't steal right now.
- pcwalton: we can probably benchmark selector matching.
- jack: yeah, we'll ned a baseline to compare for simon's new stuff.
- brson: the feature that's missing is the aiblity to add workstealing schedulers at runtime.
- jack: was that high up on the list?
- brson: there's some stability bugs, so it wasn't high up on the list.
strings
- pcwalton: it would be nice to have dynamically sized enums: enum MyString { Ascii([u8]), Ucs2([u16]) }
- jack: we could use owned vectors for now until DST is available.
- pcwalton: you want ref counted strings and interned strings. in gecko you can treated an interned string as a ref string which is kind of nice.
- bz: the hierarchy has some benefits. the code will just accept any string. the drawback is that it's more complicated and the gecko hierarchy is arleady so complicated. perhaps if the hierarchy is simpler it would be worth it.
- pcwalton: how often do we need owned backing stores vs. ref counted backing stores vs. threadsafe backing stores.
- bz: there are two refcounts, a non-threadsafe ref count and a thread refcount. they have something optimized for the case where it never goes off thread.
- pcwalton: so it switches to a threadsafe i think jack: is it useful to optimize the single threaded behavior in servo?
- bz, pcwalton: probably not
- bholley: we could eagerly make jsstrings for anything comeing from the parser.
- pcwalton: if that's fast it might work
- bz: that might be a reasonable way to go.
- bz: it's not just tagName, it's attribute values, textContent.
- pcwalton: there is weird charset stuff though
- bz: jsstrings are always unsigned 16 bit sequences. the biggest problem for ucs-2 is that you encounter it only in extreme cases, but in utf8 you hit it as soon as you hit non-ascii. for the most part js does not treat strings as text but as arrays.
- pcwalton: if you just have ascii you can store it specially, but we'd have to add it to spidermonkey.
- pcwalton: if the stuff that comes from the parser are jsstrings then we have to copy them to hte frame tree.
- bz: spidermonkey has talked about adding a refcount for this.
- bz: i think we end up copying text into text runs in gecko.
- pcwalton: maybe that's not so bad. i wonder in what cases for thread safety.
- bz: stupid stuff like selector matching needs strings.
- bz: say you have a selector that matches on a value of an attr. what gecko does right now is asks the node what's the value and compares the two values. when you ask for the attr val it hands you a string. that would require threadsafe refcount, but there are other ways to do this. you have to be somewhat careful when you do stuff.
- simon: selector matching is the next thing i'm going to work on. should i do it without interning?
- pcwalton: you could intern predefined tag names. with an enum that it's a predefined tag name or a pointer to an owned string. qualcomm's strategy was to eagerly intern ids and classes in the html parser.
- kmc: do we have a html ast separate from the dom?
- pcwalton: just the dom. it's probably too much memory to have another one.
- bz: gecko interns at setAttr time. in the class case you get an array of interned values.
- pcwalton: well known attribute names are also candidates for interning.
- bz: there are some tradeoffs. if you look at getAttr microbenchmarks, if you don't have too many attributes it's cheaper not to intern a string. doing compares that fail fast is actually cheaper. i think gecko is perhaps more intern happy than it needs to be.
- pcwalton: simon, maybe the thing to do is to not intern stuff and just throw in stuff later until we're happy.
spidermonkey c api
- bz: where would the c api live?
- jdm: it would be in rust-mozjs
- pcwalton: maybe swig i the best appraoah.
- jdm: apparently there's not much supprot for C++ to C swig support.
- bholley: when we rev spidermonkey we can use zones, which is the gc unit. one advantage in gecko is that every tab is its own zone, then when you kill the tab it's easy to get rid of everything.
- bz: the interesting thing is the lag time between closing a tab and the memory being freed.
.... lots of discussion about how zones interact with cross domain and multiple tabs...