Skip to content

Instantly share code, notes, and snippets.

View jdm's full-sized avatar

Josh Matthews jdm

View GitHub Profile
@jdm
jdm / gist:017e2e5a6534a835e81d7fcb465f4389
Last active December 5, 2017 17:48
gecko measurements
Importance of missing features:
* disable Gecko DOM APIs that Servo doesn't support, see performance/visual effect on TP6 sites
* disable Gecko layout features that Servo doesn't support, see performance/visual effect on TP6 sites
JS/DOM architecture:
* measure time spent in cycle collector (doesn't exist in Servo)
* measure memory usage difference between eager and lazy reflector strategy
- single page HTML spec
- start with HTML parser nodes (nsHtml5TreeOperation::Append)
- use save & measure, then measure & diff from about:memory, look at explicit/window-objects in content process
$ tools/android - update sdk --no-ui --all --filter platform-tools
Installing Archives:
Preparing to install archives
Downloading Android SDK Platform-tools, revision 26.0.2
Download finished with wrong checksum. Expected 685bb47f28db4c739b1815be3155af1974929ea6, got 161ca26461d4caec6cbbef513891fcd04a4fcf52.
Done. Nothing was installed.
error: failed to run custom build command for `osmesa-src v17.3.1-devel (https://github.com/servo/osmesa-src#6d23daed)`
process didn't exit successfully: `/home/travis/build/servo/servo/target/debug/build/osmesa-src-02b54fad7b7ae406/build-script-build` (exit code: 101)
--- stdout
running: "touch" "configure.ac" "aclocal.m4" "configure" "Makefile.am" "Makefile.in" "src/compiler/glsl/glcpp/glcpp-lex.c" "src/mesa/program/lex.yy.c" "src/compiler/glsl/glcpp/glcpp-parse.c" "src/compiler/glsl/glsl_parser.cpp" "src/mesa/program/program_parse.tab.c" "src/compiler/glsl/glsl_lexer.cpp"
running: "/home/travis/build/servo/servo/.cargo/git/checkouts/osmesa-src-bf84ce2b80210dd7/6d23dae/mesa-src/configure" "--disable-dri" "--disable-driglx-direct" "--disable-dri3" "--disable-egl" "--disable-gbm" "--disable-gles1" "--disable-gles2" "--disable-glx" "--with-platforms=" "--enable-gallium-osmesa" "--with-gallium-drivers=swrast"
10:53 <jdm> mayhemer: when an HTTP redirect occurs, which channels see the OnStartRequest notification?
10:54 <mayhemer> jdm: channels?
10:54 <jdm> mayhemer: so there is the channel that gets redirected, and the new channel that is the result of the redirect
10:55 <jdm> mayhemer: does the original channel have OnStartRequest called?
10:55 <mayhemer> jdm: depends
10:55 <mayhemer> jdm: if go to network for the response, we definitely get called with the 30X response
10:56 <mayhemer> so, the first channel gets onStart
10:56 <jdm> ok, that's helpful
10:56 <mayhemer> when we go from the cache and some other conditions are met, we skip and redirect immediately (the first channel doesn't open any pump)
10:56 <jdm> mayhemer: is there some API to determine if a redirection has occurred so we can ignore that?
diff --git a/ports/glutin/window.rs b/ports/glutin/window.rs
index 102c014..4c5b01d 100644
--- a/ports/glutin/window.rs
+++ b/ports/glutin/window.rs
@@ -192,6 +192,10 @@ pub struct Window {
/// the equivalent ReceivedCharacter data as was received for the press event.
pressed_key_map: RefCell<Vec<(ScanCode, char)>>,
+ /// The last KeyboardInput event that was received. Used to reorder the KeyboardInput
+ /// and ReceivedCharacter events on Windows.
feature count
PageVisits 10
V8SloppyMode 9
SecureContextCheckFailed 8
V8StrictMode 7
SecureContextCheckPassed 7
ContentSecurityPolicy 6
WorkerSubjectToCSP 5
SameOriginOtherScript 5
PrefixedDevicePixelRatioMediaFeature 4
Compiling osmesa-src v12.0.1 (https://github.com/servo/osmesa-src#42509fbd)
error: failed to run custom build command for `osmesa-src v12.0.1 (https://github.com/servo/osmesa-src#42509fbd)`
process didn't exit successfully: `/home/sagartoms/servo/target/debug/build/osmesa-src-3fd955e5ccdf858b/build-script-build` (exit code: 101)
--- stdout
running: "touch" "configure.ac" "aclocal.m4" "configure" "Makefile.am" "Makefile.in" "src/compiler/glsl/glcpp/glcpp-lex.c" "src/mesa/program/lex.yy.c" "src/compiler/glsl/glcpp/glcpp-parse.c" "src/compiler/glsl/glsl_parser.cpp" "src/mesa/program/program_parse.tab.c" "src/compiler/glsl/glsl_lexer.cpp"
running: "/home/sagartoms/servo/.cargo/git/checkouts/osmesa-src-bf84ce2b80210dd7/42509fb/mesa-12.0.1/configure" "--disable-gles1" "--disable-gles2" "--disable-dri" "--disable-dri3" "--disable-glx" "--disable-egl" "--disable-driglx-direct" "--enable-gallium-osmesa" "--with-gallium-drivers=swrast" "--disable-llvm-shared-libs"
checking build system type... x86_64-unknown-linux-gnu
# Roots.
0x10fa13080 W exact-Object
0x10fa03060 W exact-Object
0x10fa10040 W wrapper
0x10fa10070 W wrapper
0x10fa100a0 W wrapper
0x10fa100d0 W wrapper
0x10fa10100 W wrapper
0x10fa10130 W wrapper
0x10fa10160 W wrapper
@jdm
jdm / test.rs
Created January 18, 2017 22:49
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#[macro_use]
extern crate js;
extern crate libc;
use js::jsapi::{jsfriendapi_h_unnamed_12, DumpHeap};
use js::glue::CallValueTracer;
@jdm
jdm / dmd.diff
Last active January 17, 2017 07:20
diff --git a/Cargo.lock b/Cargo.lock
index b0818bf..28e1cd1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -23,6 +23,15 @@ dependencies = [
]
[[package]]
+name = "alloc-jemalloc-dmd"
+version = "0.0.0"