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
Right now, we have to pass the name of a file to XmlRfcParser, which turns around and .read()s the file into memory. If we already have the content in memory, we have to do a round-trip through the filesystem that is unnecessary and adds complexity around temporary file management (see the PR at svgcheck for dealing with taking input from stdin).
Enhance the signature of init to allow passing in the bits if we have them already rather than passing a filename.
Consider deprecating passing in the filename and removing that option in the future.
Description
Right now, we have to pass the name of a file to XmlRfcParser, which turns around and
.read()
s the file into memory. If we already have the content in memory, we have to do a round-trip through the filesystem that is unnecessary and adds complexity around temporary file management (see the PR at svgcheck for dealing with taking input from stdin).Enhance the signature of init to allow passing in the bits if we have them already rather than passing a filename.
Consider deprecating passing in the filename and removing that option in the future.
Code of Conduct
The text was updated successfully, but these errors were encountered: