| > httmirror() :260ms. //too long for me
> htsparse() : 79ms // ok this is quite quick.
> memory at the end of httpmirror() by XH_uninit
> Is there any way to reduce this time? How could I
optimise
> memory freeing?
You can skip the HTTP background deletion, by editing
htscore.c, and deleting the following lines:
for(i=0;i<back_max;i++) { \
back_delete(&opt,&cache,back,i); \
} \
.. as the program will exit anyway after that.
You can similarly erase:
if (liens!=NULL) { \
for(i=lien_max-1;i>=0;i--) { \
if (liens[i]) { \
if (liens[i]->firstblock==1) { \
freet(liens[i]); \
liens[i]=NULL; \
} \
} \
} \
freet(liens); \
liens=NULL; \
} \
| |