Kriskras99 opened a new pull request, #493:
URL: https://github.com/apache/avro-rs/pull/493

   This is achieved by:
   - Making `Name` one allocation instead of two
   - Returning references as much as possible to reduce cloning
     - `.namespace()` returns a `NamespaceRef<'_>` which is a `Option<&'_ str>`
     - `fully_qualified_name` returns a `Cow<'_, Name>` which reduces 
allocations when the name already has a namespace or there is enclosing 
namespace.
   - Allow efficient construction of the name when there is an enclosing 
namespace
   - `Display` and `fullname(None)` can now return the full name directly
   
   This required changing the `SchemaNameValidator` trait which now needs to 
return the index of the starting byte of the name. Included in this change is 
providing default implementations for `*Validator::validate` functions. This 
allows users to easily implement the trait by just returning a different regex.


-- 
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]

Reply via email to