You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#22940 adds code for mime type sniffing. Currently, if an xml document doesn't begin with an <?xml signature the way the code determines if it's xml is by unmarshaling everything and seeing if an error occurred. Go's xml implementation is pretty bad in terms of speed and memory pressure. We should replace this with a more scalable implementation. See #22940 (comment) for some ideas for identification rules for an XML document.
The text was updated successfully, but these errors were encountered:
Describe the enhancement:
#22940 adds code for mime type sniffing. Currently, if an xml document doesn't begin with an
<?xml
signature the way the code determines if it's xml is by unmarshaling everything and seeing if an error occurred. Go's xml implementation is pretty bad in terms of speed and memory pressure. We should replace this with a more scalable implementation. See #22940 (comment) for some ideas for identification rules for an XML document.The text was updated successfully, but these errors were encountered: