gospin
gospin copied to clipboard
Slow for large templates and number of articles
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.
Do you have an example template that you can share that demonstrates this behaviour?
@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)
This is gonna be hard for me to test without a large premade template.