Skip to content

Commit ae278a5

Browse files
committed
Prioritize runtime perf over unpack perf
1 parent c18e1f5 commit ae278a5

File tree

8 files changed

+278
-445
lines changed

8 files changed

+278
-445
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rlbot_flatbuffers"
3-
version = "0.13.1"
3+
version = "0.13.2"
44
edition = "2021"
55
description = "A Python module implemented in Rust for serializing and deserializing RLBot's flatbuffers"
66
repository = "https://github.com/VirxEC/rlbot_flatbuffers_py"
@@ -25,6 +25,9 @@ flatbuffers = "=24.12.23"
2525
# forked and updated deps
2626
get-size = { git = "https://github.com/VirxEC/get-size", branch = "update", features = ["derive"] }
2727

28+
[profile.dev]
29+
opt-level = 2
30+
2831
[profile.release]
2932
lto = true
3033
strip = true

codegen/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub enum PythonBindType {
2727

2828
impl PythonBindType {
2929
pub const BASE_TYPES: [&'static str; 6] = ["bool", "i32", "u32", "f32", "String", "u8"];
30-
pub const FROZEN_TYPES: [&'static str; 19] = [
30+
pub const FROZEN_TYPES: [&'static str; 21] = [
3131
"GoalInfo",
3232
"GamePacket",
3333
"PlayerInfo",
@@ -47,9 +47,9 @@ impl PythonBindType {
4747
"ControllableTeamInfo",
4848
"BoostPad",
4949
"PredictionSlice",
50+
"FieldInfo",
51+
"BallPrediction",
5052
];
51-
pub const SEMI_FROZEN_TYPES: [&'static str; 2] = ["FieldInfo", "BallPrediction"];
52-
pub const FROZEN_NEEDS_PY: [&'static str; 3] = ["GamePacket", "BallInfo", "CollisionShape"];
5353
pub const UNIONS: [&'static str; 4] = [
5454
"PlayerClass",
5555
"CollisionShape",

0 commit comments

Comments
 (0)