MCPcopy Create free account
hub / github.com/argumentcomputer/ix / insert_standalone_entries

Function insert_standalone_entries

crates/kernel/src/ingress.rs:3588–3618  ·  view source on GitHub ↗
(
  zenv: &mut KEnv<M>,
  entries: Vec<(KId<M>, KConst<M>)>,
)

Source from the content-addressed store, hash-verified

3586 self.output_consts += other.output_consts;
3587 self.missing_consts += other.missing_consts;
3588 self.lookup_ns += other.lookup_ns;
3589 self.const_get_ns += other.const_get_ns;
3590 self.convert_ns += other.convert_ns;
3591 self.insert_ns += other.insert_ns;
3592 self.insert_blocks_ns += other.insert_blocks_ns;
3593 self.insert_consts_ns += other.insert_consts_ns;
3594 self.convert_stats = self.convert_stats.merge(&other.convert_stats);
3595 self
3596 }
3597}
3598
3599#[cfg(not(target_arch = "riscv64"))]
3600#[derive(Default)]
3601struct IxonDropTiming {
3602 consts_ns: u64,
3603 named_ns: u64,
3604 names_ns: u64,
3605 blobs_ns: u64,
3606 comms_ns: u64,
3607}
3608
3609#[cfg(not(target_arch = "riscv64"))]
3610struct LookupDropTiming {
3611 names_ns: u64,
3612 name_to_addr_ns: u64,
3613}
3614
3615fn duration_ns(d: Duration) -> u64 {
3616 u64::try_from(d.as_nanos()).unwrap_or(u64::MAX)
3617}
3618
3619fn elapsed_ns(start: Instant) -> u64 {
3620 duration_ns(start.elapsed())
3621}

Callers 3

ixon_ingress_innerFunction · 0.85
ingress_anon_standaloneFunction · 0.85

Calls 5

elapsed_nsFunction · 0.85
pushMethod · 0.80
entryMethod · 0.80
cloneMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected