2 ms·
1300 vs 1000 is not "that many more". It's close to insignificant to comparing two languages. Especially when they boil down to things like: let ptr = unsaf
by coldtea 8y ago
1300 vs 1000 is not "that many more".
It's close to insignificant to comparing two languages. Especially when they boil down to things like:
let ptr = unsafe {
libc::mmap(
ptr::null_mut(),
len,
libc::PROT_READ | libc::PROT_WRITE,
libc::MAP_SHARED,
file.as_raw_fd(),
0,
) as *mut u8
};
vs calling something like this in one line in C, etc.
The C version also crams every line together, the Rust version couples related statements but leave newlines between others (not sure if loc counts those too).