Question
Convert the same doc file to markdown, python cost 3.3s but cpp cost 16.8s.
Aspose.Words for Python
aspose-words==24.5.0
python code
import aspose.words as aw
license = aw.License()
license.set_license('Aspose.Total.Product.Family.lic')
doc = aw.Document('134p.doc')
doc.save('134p_py.md')
Aspose.Words for CPP
Aspose.Words.Cpp_24.4
cpp code
#include <Aspose.Words.Cpp/License.h>
#include <Aspose.Words.Cpp/Document.h>
#include <Aspose.Words.Cpp/Saving/MarkdownSaveOptions.h>
Aspose::Words::License license;
license.SetLicense(u"Aspose.Total.Product.Family.lic");
auto doc = System::MakeObject<Aspose::Words::Document>(u'134p.doc');
auto options = System::MakeObject<Aspose::Words::Saving::MarkdownSaveOptions>();
doc->Save(u'134p_cpp.md', options);
My doc file
134p.zip (121.1 KB)