Evaluate the possibility of using a OnceMap
instead of an AppendOnlyVec
for TypeDatas
.
#260
Labels
code:todo
A TODO/FIXME comment in code.
The only reason we would use a `OnceMap` would be to improve the lookup performance and avoid having to iterate over the entire vec each time we need to find a type data with a particular schema. Since there are not usually a large number of type datas for any single type, this probably isn't a concern, but maybe we should do some benchmarking.
bones/framework_crates/bones_schema/src/alloc/type_datas.rs
Lines 8 to 15 in b865f8f
This issue was generated by todo-issue based on a
TODO
comment in b865f8f.The text was updated successfully, but these errors were encountered: