Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

converting python dict to xml taking longer time and sometime hanged the system #80

Open
sudhakar692 opened this issue Jun 8, 2020 · 6 comments

Comments

@sudhakar692
Copy link

while trying to write python object to XML it's taking a long time or some time even after 4-5 minutes, there is no response from the library.

@quandyfactory
Copy link
Owner

Can you share a code example that is causing this issue?

@sudhakar692
Copy link
Author

@quandyfactory Please find the code below

import dicttoxml

def writexml(data, custom_root_name =None):
    dicttoxml.LOG.setLevel(logging.ERROR)`
    dicttoxml.set_debug(False)
    xml_str = dicttoxml.dicttoxml(data, custom_root=custom_root_name)
    return xml_str

data is a valid python list.

@quandyfactory
Copy link
Owner

How big is the list?

@sudhakar692
Copy link
Author

it's quite big of size 26MB. if I export in CSV or JSON.

@sudhakar692
Copy link
Author

this link could be helpful to generate random data of desirable size
https://www.json-generator.com/

@sudhakar692
Copy link
Author

@quandyfactory is there any thing you figured out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants