SpacetimeDB
SpacetimeDB copied to clipboard
table_name: use Arc<str>
Description of Changes
Switches most cases where a table / reducer name is stored to an Arc<str> rather than String.
API and ABI breaking changes
None
Expected complexity level and risk
1
This isn't yet a clear win; so let's hold off on merging. We might want to consider one of:
- https://crates.io/crates/flexstr
- https://crates.io/crates/smol_str
- https://crates.io/crates/arcstr
Also, I think instead is the whole schema that should be under Arc/Rc
Because now DbTable & MemTable both have pub head: Arc<Header> this PR can be closed, right?