tqchen opened a new pull request, #18185:
URL: https://github.com/apache/tvm/pull/18185

   This PR introduces small string support to the FFI system. When the string 
length fit into the space in TVMFFIAny (aka len(str) <= 10). We directly store 
the string content into the TVMFFIAny content instead of creating a Object. 
This change will likely speedup small string access.
   
   Some implications:
   
   - Always check for kTVMFFISmallStr code as well as kTVMFFIStr
   - Always check for kTVMFFISmallBytes when checking kTVMFFIBytes
   - Avoid using details::StringObj, instead, always use any.as<String>()
   - Always set any.padding to 0 for other values (in compiler and runtime) to 
enable fast cmp


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