Commit 2de12f3
committed
refactor: processPacket の重複チェック早期化とマジックナンバー解消
- check_counter の重複検査を deserialize() と位置マッチングの前に移動し、
重複パケット時の不要な演算(デシリアライズ・位置マッチング)をスキップするよう改善
- チームループのマジックナンバー 2 を config.h の TEAM_COUNT 定数に置換
- 自明なインラインコメント(skip robot_id byte)を削除1 parent 229bb34 commit 2de12f3
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
210 | 216 | | |
211 | 217 | | |
212 | 218 | | |
213 | 219 | | |
214 | 220 | | |
215 | 221 | | |
216 | | - | |
| 222 | + | |
217 | 223 | | |
218 | 224 | | |
219 | 225 | | |
| |||
232 | 238 | | |
233 | 239 | | |
234 | 240 | | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | 241 | | |
240 | 242 | | |
241 | 243 | | |
| |||
0 commit comments