Skip to content

Instantly share code, notes, and snippets.

Alex Crichton alexcrichton

Block or report user

Report or block alexcrichton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View -
+------------------------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
| Item | Self time | % of total time | Item count | Cache hits | Blocked time | Incremental load time |
+------------------------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
| LLVM_emit_obj | 27.43s | 45.221 | 496 | 0 | 0.00ns | 0.00ns |
+------------------------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
| LLVM_make_bitcode | 6.56s | 10.820 | 496 | 0 | 0.00ns | 0.00ns |
+------------------------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
| typeck_tables_of |
View wut
| Pass ascii_small to/from wasm-bindgen |1,739,343/s ±1.33% | 1,028,842/s ±2.03%|
|Pass ascii_medium to/from wasm-bindgen |1,553,687/s ±1.37% | 990,149/s ±2.37%|
|Pass ascii_number to/from wasm-bindgen |1,461,455/s ±1.38% | 988,315/s ±2.01%|
|Pass ascii_date to/from wasm-bindgen |1,182,276/s ±1.25% | 845,042/s ±2.17%|
|Pass ascii_url to/from wasm-bindgen |1,179,832/s ±1.82% | 891,663/s ±1.95%|
|Pass ascii_link to/from wasm-bindgen |1,202,142/s ±0.83% | 887,017/s ±1.59%|
|Pass unicode to/from wasm-bindgen |406,366/s ±3.59% | 365,823/s ±2.78%|
View wut
Pass ascii_small to/from wasm-bindgen |1,739,343/s ±1.33% | 1,028,842/s ±2.03%
Pass ascii_medium to/from wasm-bindgen |1,553,687/s ±1.37% | 990,149/s ±2.37%
Pass ascii_number to/from wasm-bindgen |1,461,455/s ±1.38% | 988,315/s ±2.01%
Pass ascii_date to/from wasm-bindgen |1,182,276/s ±1.25% | 845,042/s ±2.17%
Pass ascii_url to/from wasm-bindgen |1,179,832/s ±1.82% | 891,663/s ±1.95%
Pass ascii_link to/from wasm-bindgen |1,202,142/s ±0.83% | 887,017/s ±1.59%
Pass unicode to/from wasm-bindgen |406,366/s ±3.59% | 365,823/s ±2.78%
View foo.diff
diff --git a/crates/cli-support/src/js/mod.rs b/crates/cli-support/src/js/mod.rs
index 6a7bba55c..d433f7cc3 100644
--- a/crates/cli-support/src/js/mod.rs
+++ b/crates/cli-support/src/js/mod.rs
@@ -900,30 +900,6 @@ impl<'a> Context<'a> {
self.expose_uint8_memory();
self.require_internal_export("__wbindgen_realloc")?;
- // A fast path that directly writes char codes into WASM memory as long
- // as it finds only ASCII characters.
View foo.diff
diff --git a/src/cargo/util/dependency_queue.rs b/src/cargo/util/dependency_queue.rs
index 21886c0ee..946549507 100644
--- a/src/cargo/util/dependency_queue.rs
+++ b/src/cargo/util/dependency_queue.rs
@@ -88,14 +88,15 @@ impl<N: Hash + Eq + Clone, E: Eq + Hash + Clone, V> DependencyQueue<N, E, V> {
}
self.priority = out.into_iter().map(|(n, set)| (n, set.len())).collect();
- fn depth<N: Hash + Eq + Clone, E: Hash + Eq + Clone>(
+ fn depth<'a, N: Hash + Eq + Clone, E: Hash + Eq + Clone>(
View lib.rs
use once_cell::sync::OnceCell;
use std::ffi::CStr;
use std::mem;
use std::ptr;
use std::sync::atomic::{AtomicUsize, Ordering::SeqCst};
#[macro_export]
macro_rules! progress {
() => {{
static COUNTER: $crate::Counter =
View main.rs
use std::sync::{Arc, Mutex, Condvar};
fn main() {
coz::begin!("wut");
coz::begin!("foo");
std::thread::sleep_ms(1000);
coz::end!("foo");
coz::begin!("bar");
std::thread::sleep_ms(500);
coz::end!("bar");
View profile.coz
startup time=1568845676137816507
experiment selected=/rustc/eae3437dfe991621e8afdc82734f4a172d7ddf9b/src/libcore/sync/atomic.rs:2121 speedup=0.75 duration=500152034 selected-samples=0
throughput-point name=src/main.rs:7 delta=164562
experiment selected=/rustc/eae3437dfe991621e8afdc82734f4a172d7ddf9b/src/libstd/io/buffered.rs:513 speedup=0.75 duration=500146496 selected-samples=0
throughput-point name=src/main.rs:7 delta=168744
experiment selected=/rustc/eae3437dfe991621e8afdc82734f4a172d7ddf9b/src/libcore/sync/atomic.rs:2152 speedup=0.75 duration=500145416 selected-samples=0
throughput-point name=src/main.rs:7 delta=167958
experiment selected=/home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/once_cell-1.1.0/src/lib.rs:738 speedup=0.35 duration=500146709 selected-samples=0
throughput-point name=src/main.rs:7 delta=168870
experiment selected=/rustc/eae3437dfe991621e8afdc82734f4a172d7ddf9b/src/liballoc/sync.rs:757 speedup=0.00 duration=500144790 selected-samples=0
View profile.coz
startup time=1568845676137816507
experiment selected=/rustc/eae3437dfe991621e8afdc82734f4a172d7ddf9b/src/libcore/sync/atomic.rs:2121 speedup=0.75 duration=500152034 selected-samples=0
throughput-point name=src/main.rs:7 delta=164562
experiment selected=/rustc/eae3437dfe991621e8afdc82734f4a172d7ddf9b/src/libstd/io/buffered.rs:513 speedup=0.75 duration=500146496 selected-samples=0
throughput-point name=src/main.rs:7 delta=168744
experiment selected=/rustc/eae3437dfe991621e8afdc82734f4a172d7ddf9b/src/libcore/sync/atomic.rs:2152 speedup=0.75 duration=500145416 selected-samples=0
throughput-point name=src/main.rs:7 delta=167958
experiment selected=/home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/once_cell-1.1.0/src/lib.rs:738 speedup=0.35 duration=500146709 selected-samples=0
throughput-point name=src/main.rs:7 delta=168870
experiment selected=/rustc/eae3437dfe991621e8afdc82734f4a172d7ddf9b/src/liballoc/sync.rs:757 speedup=0.00 duration=500144790 selected-samples=0
View profile.coz
startup time=1568845676137816507
experiment selected=/rustc/eae3437dfe991621e8afdc82734f4a172d7ddf9b/src/libcore/sync/atomic.rs:2121 speedup=0.75 duration=500152034 selected-samples=0
throughput-point name=src/main.rs:7 delta=164562
experiment selected=/rustc/eae3437dfe991621e8afdc82734f4a172d7ddf9b/src/libstd/io/buffered.rs:513 speedup=0.75 duration=500146496 selected-samples=0
throughput-point name=src/main.rs:7 delta=168744
experiment selected=/rustc/eae3437dfe991621e8afdc82734f4a172d7ddf9b/src/libcore/sync/atomic.rs:2152 speedup=0.75 duration=500145416 selected-samples=0
throughput-point name=src/main.rs:7 delta=167958
experiment selected=/home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/once_cell-1.1.0/src/lib.rs:738 speedup=0.35 duration=500146709 selected-samples=0
throughput-point name=src/main.rs:7 delta=168870
experiment selected=/rustc/eae3437dfe991621e8afdc82734f4a172d7ddf9b/src/liballoc/sync.rs:757 speedup=0.00 duration=500144790 selected-samples=0
You can’t perform that action at this time.