A way to make templates start faster?

muchink

Client
Регистрация
28.07.2012
Сообщения
193
Благодарностей
6
Баллы
18
As I've seen on ZP4 and even bigger notice on ZP5, if I'm not changing anything and there are still 5 threads per process, it takes a lot of time for the program to start new threads every time.
Is there a way to make the program create threads faster?
RAM and CPU are the best, so there is no problem with the computer..

Thanks.
 

hop

Client
Регистрация
20.03.2011
Сообщения
232
Благодарностей
28
Баллы
28
I think Zennolab team can do some optimalisation soo, but it is so important? How long time You must wait for threads?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
ZennoPoster requires time to start instance and restart bases. What do you mean when you say a lot?
 

muchink

Client
Регистрация
28.07.2012
Сообщения
193
Благодарностей
6
Баллы
18
For example, if I'm having 4 templates that finish in about 30 sec-1 min each.
and the max amount of threads is 200, while I'm trying to get more than 1000 successful executions for each templates,
instead of running on constant 40+ threads on each template, they run on 3-4 each which takes much longer to finish the job..

Thanks for the quick reply!
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
You can increase execution speed by adding loops to template. So your template will perform not 1 execution while it's running, but 3-4.
 

muchink

Client
Регистрация
28.07.2012
Сообщения
193
Благодарностей
6
Баллы
18

satyr85

Client
Регистрация
24.02.2012
Сообщения
43
Благодарностей
3
Баллы
8
Thats strange... I have one template, and it takes 30-60sec to finish it but i use shitload of regex so 30-40 threads kills my i5 3450 but i get that 30 threads with no problems and ~45 successful executions per minute.
 

muchink

Client
Регистрация
28.07.2012
Сообщения
193
Благодарностей
6
Баллы
18
The execution time wasn't the problem, the problem was that the threads aren't starting fast enough and instead of having a total amount of >100 threads I'm averaging on 30 even though I used 5 loops in each templates and my PC's ram and CPU levels didn't even get to 40%.

I'll try with more loops and see how is it working..
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)