Considering the following code:
from markdown import markdown
f = open('myfile.md', 'r')
html_text = markdown(f.read())
f.close()
Is there any speed advantage or disadvantage to using io.BytesIO and markdownFromFile? Or is it a wash?
from markdown import markdownFromFile
from io import BytesIO
s = BytesIO()
markdownFromFile(input='myfile.md', output=s)
html_text = s.getvalue()
s.close()
Thanks in advance for any information.