File .text Size Crate
2.1% 30.7% 14.5MiB [Unknown]
0.8% 12.3% 5.8MiB std
0.4% 5.3% 2.5MiB ffmpeg_sys_next
0.2% 2.8% 1.3MiB cranelift_codegen
0.2% 2.8% 1.3MiB tokio
0.2% 2.2% 1.1MiB naga
0.1% 2.2% 1.0MiB wasmparser
0.1% 1.8% 887.9KiB client_ui
0.1% 1.8% 871.2KiB hashbrown
0.1% 1.8% 849.3KiB client_containers
0.1% 1.5% 730.9KiB rayon_core
0.1% 1.2% 579.2KiB egui
0.1% 1.1% 555.8KiB rustls
0.1% 1.0% 471.6KiB game_config
0.1% 0.9% 431.0KiB ddnet_playground
0.1% 0.9% 420.8KiB winit
0.1% 0.8% 390.7KiB serde_json
0.1% 0.8% 385.4KiB editor
0.1% 0.7% 358.2KiB regalloc2
0.0% 0.7% 352.6KiB zstd_sys
1.6% 22.9% 10.8MiB And 311 more crates. Use -n N to show more.
6.8% 100.0% 47.2MiB .text section size
LTO, codegen-units = 1, strip, panic = "abort".
Still the exec is around 60MiB File .text Size Crate
7.2% 22.5% 14.5MiB [Unknown]
3.0% 9.3% 6.0MiB std
1.7% 5.3% 3.4MiB client_ui
1.6% 5.1% 3.3MiB editor
1.2% 3.9% 2.5MiB cranelift_codegen
1.2% 3.9% 2.5MiB ffmpeg_sys_next
1.0% 3.1% 2.0MiB game_server
0.9% 2.7% 1.8MiB client_containers
0.8% 2.5% 1.6MiB naga
0.8% 2.4% 1.5MiB wasmparser
0.4% 1.4% 930.2KiB graphics_backend
0.4% 1.3% 883.4KiB vanilla
0.4% 1.3% 858.2KiB game_config
0.4% 1.1% 743.7KiB egui
0.3% 1.0% 670.4KiB winit
0.3% 0.9% 606.8KiB client_render_base
0.3% 0.9% 586.7KiB client_render_game
0.3% 0.8% 533.6KiB rustls
0.2% 0.8% 515.6KiB game_state_wasm
0.2% 0.7% 454.7KiB quinn_proto
0.2% 0.6% 389.1KiB reqwest
0.2% 0.6% 364.7KiB client_demo
0.2% 0.5% 359.6KiB config
0.2% 0.5% 346.9KiB game_base
0.2% 0.5% 346.5KiB game_database_backend
0.2% 0.5% 344.8KiB regex_automata
0.2% 0.5% 341.5KiB client_accounts
0.2% 0.5% 325.1KiB naga_oil
0.2% 0.5% 314.6KiB sqlx_mysql
0.1% 0.5% 307.0KiB tokio
Since back then it's significantly smaller. I assume I disabled features that I never used or they drastically decreased the size by shifting stuff to the std or smthvar ptr *int
_ = *ptr
:TSInstall all
is heavy:TSInstall all
is heavy CDbConnectionPool::Execute()
seems to just index m_aQueries without boundary check other than overflowing to zeromod foo {
pub fn main() -> i64 {
for (let mut i: i32 = 0; i < 10; i = i + 1) {
let mut b: i8 = 0;
b = b + 1;
}
return 0;
}
}
cargo install cargo-bloat
https://github.com/RazrFalcon/cargo-bloat
cargo bloat --release -p twgpu-tools --crates -n 50
Then you can see that the biggest dep is naga actually (kinda surprising too). But matches around the size in my repo (https://discord.com/channels/252358080522747904/293493549758939136/1349286150061293582)cargo install cargo-bloat
https://github.com/RazrFalcon/cargo-bloat
cargo bloat --release -p twgpu-tools --crates -n 50
Then you can see that the biggest dep is naga actually (kinda surprising too). But matches around the size in my repo (https://discord.com/channels/252358080522747904/293493549758939136/1349286150061293582) ban 98129 10
CGameContext::m_aPlayers[MAX_CLIENTS]
which is cool and all.
If the player disconnects there will be a nullptr
at that position in the array. So given an id you can quickly figure out of the player is online or not.
status
status
MAX_CLIENT
slotscd teeworlds
mkdir build
cd build
cmake ..
cmake --build .
tune gravity moon
curl https://en.m.wikipedia.org/wiki/Coal_Creek,_Jefferson_County,_Colorado | grep Ewan