chaokunyang commented on code in PR #2815:
URL: https://github.com/apache/fory/pull/2815#discussion_r2454037336
##########
rust/fory-core/src/resolver/type_resolver.rs:
##########
@@ -310,6 +318,11 @@ pub struct TypeResolver {
// Fast lookup by numeric ID for common types
type_id_index: Vec<u32>,
compatible: bool,
+ // only for registry
+ actual_type_id_map: HashMap<std::any::TypeId, u32>,
+ registry: BTreeMap<std::any::TypeId, Arc<dyn Fn(&mut Self) -> Result<(),
Error>>>,
Review Comment:
keep using HashMap, order is not important
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]