global: address -> addr rename

This commit is contained in:
nym21
2026-03-17 11:01:21 +01:00
parent 5609e6c010
commit f62943199c
141 changed files with 3788 additions and 3754 deletions

View File

@@ -14,23 +14,23 @@ pub fn main() -> Result<()> {
let computer = Computer::forced_import(&outputs_dir, &indexer)?;
// Test empty_address_data (underlying BytesVec) - direct access
let empty_data = &computer.distribution.addresses_data.empty;
println!("empty_address_data (BytesVec) len: {}", empty_data.len());
// Test empty_addr_data (underlying BytesVec) - direct access
let empty_data = &computer.distribution.addrs_data.empty;
println!("empty_addr_data (BytesVec) len: {}", empty_data.len());
let start = Instant::now();
let mut buf = Vec::new();
empty_data.write_json(Some(empty_data.len() - 1), Some(empty_data.len()), &mut buf)?;
println!(
"empty_address_data last item JSON: {}",
"empty_addr_data last item JSON: {}",
String::from_utf8_lossy(&buf)
);
println!("Time for BytesVec write_json: {:?}", start.elapsed());
// Test empty_address_index (LazyVecFrom1 wrapper) - computed access
let empty_index = &computer.distribution.addresses.empty_index;
// Test empty_addr_index (LazyVecFrom1 wrapper) - computed access
let empty_index = &computer.distribution.addrs.empty_index;
println!(
"\nempty_address_index (LazyVecFrom1) len: {}",
"\nempty_addr_index (LazyVecFrom1) len: {}",
empty_index.len()
);
@@ -42,14 +42,14 @@ pub fn main() -> Result<()> {
&mut buf,
)?;
println!(
"empty_address_index last item JSON: {}",
"empty_addr_index last item JSON: {}",
String::from_utf8_lossy(&buf)
);
println!("Time for LazyVecFrom1 write_json: {:?}", start.elapsed());
// Compare with funded versions
let funded_data = &computer.distribution.addresses_data.funded;
println!("\nfunded_address_data (BytesVec) len: {}", funded_data.len());
let funded_data = &computer.distribution.addrs_data.funded;
println!("\nfunded_addr_data (BytesVec) len: {}", funded_data.len());
let start = Instant::now();
let mut buf = Vec::new();
@@ -59,7 +59,7 @@ pub fn main() -> Result<()> {
&mut buf,
)?;
println!(
"funded_address_data last item JSON: {}",
"funded_addr_data last item JSON: {}",
String::from_utf8_lossy(&buf)
);
println!("Time for BytesVec write_json: {:?}", start.elapsed());