- Add optional modifier-only Super binding whose tap is cancelled by other input, focus changes, grabs, locks, and session teardown. - Ship the native ferese-rime user service, Rime defaults, installer inventory, package dependencies, session environment, and docs. - Vendor Smithay 8a27023 with the SHM texture-cache format fix and add GPU regressions for format changes and resize snapshots. - Release reused CRTC owners before staging output modes, then restore changed outputs before former owners when a transaction fails. - Wait for resize-capture GPU completion, expand filtered surface damage, and preserve IME popup origin under fractional scaling. - Mark weekends like holidays in both calendar layouts.
19 lines
625 B
Rust
19 lines
625 B
Rust
use criterion::{Criterion, criterion_group, criterion_main};
|
|
use smithay::utils::user_data::UserDataMap;
|
|
|
|
fn criterion_benchmark(c: &mut Criterion) {
|
|
c.bench_function("UserDataMap::get", |b| {
|
|
let udata_map = UserDataMap::new();
|
|
udata_map.insert_if_missing(|| 17i32);
|
|
b.iter(|| udata_map.get::<i32>())
|
|
});
|
|
c.bench_function("UserDataMap::get threadsafe", |b| {
|
|
let udata_map = UserDataMap::new();
|
|
udata_map.insert_if_missing_threadsafe(|| 17i32);
|
|
b.iter(|| udata_map.get::<i32>())
|
|
});
|
|
}
|
|
|
|
criterion_group!(benches, criterion_benchmark);
|
|
criterion_main!(benches);
|