gospin icon indicating copy to clipboard operation
gospin copied to clipboard

Slow for large templates and number of articles

Open vedmant opened this issue 3 years ago • 3 comments

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.

vedmant avatar Mar 30 '21 09:03 vedmant

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

m1 avatar Mar 30 '21 10:03 m1

@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)


vedmant avatar Mar 30 '21 10:03 vedmant

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

m1 avatar Apr 11 '21 16:04 m1