valence/build
Terminator e80bbc22b3
Avoid calling to_kind() in is_air() (#142)
This PR changes is_air() to not call to_kind() to increase performance.

Example flamegraphs of real usecase of parsing java chunks to
UnloadedChunk:

Before this change:

![flamegraph](https://user-images.githubusercontent.com/13693773/198851700-f455d055-a18d-495c-9989-110e3f569ad9.svg)



After this change:

![flamegraph](https://user-images.githubusercontent.com/13693773/198851673-01f2a6d8-1cb0-4ae7-b57b-6e47a38d9cee.svg)
2022-10-29 13:56:48 -07:00
..
block.rs Avoid calling to_kind() in is_air() (#142) 2022-10-29 13:56:48 -07:00
enchant.rs Remove top level object from enchantments 2022-10-04 23:16:48 -07:00
entity.rs Fix formatting 2022-09-28 00:23:14 -07:00
entity_event.rs Clean up client and fix names 2022-08-05 12:36:34 -07:00
item.rs Add Items (#92) 2022-10-05 09:28:08 -07:00
main.rs Add Items (#92) 2022-10-05 09:28:08 -07:00