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

Slow for large templates and number of articles #3

Open
vedmant opened this issue Mar 30, 2021 · 3 comments
Open

Slow for large templates and number of articles #3

vedmant opened this issue Mar 30, 2021 · 3 comments

Comments

@vedmant
Copy link

vedmant commented Mar 30, 2021

Hi, this app works quite slow for bigger templates and larger number of articles, I just run 10000 articles from template, it works for 20 mins and doesn't look like going to finish anytime soon.

@m1
Copy link
Owner

m1 commented Mar 30, 2021

Do you have an example template that you can share that demonstrates this behaviour?

@vedmant
Copy link
Author

vedmant commented Mar 30, 2021

@m1 Sorry, I can't share it, the template size is 31kb. I just switched to simple python script, it finished it few minutes for 50000 articles:

import spintax
import csv

with open('articles.csv', 'w', newline='') as csvfile:
    spamwriter = csv.writer(csvfile, quoting=csv.QUOTE_ALL)

    with open('spintax.txt', 'r') as file:
        data = file.read()

    for x in range(50000):
      spamwriter.writerow([spintax.spin(data)])
      print('.', end="", flush=True)

@m1
Copy link
Owner

m1 commented Apr 11, 2021

This is gonna be hard for me to test without a large premade template.

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