HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: Performance question for Xavier
Author: Xavier Roche
Date: 10/29/2004 18:52
 
> 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; \
  } \

 
Reply Create subthread


All articles

Subject Author Date
Performance question for Xavier

10/21/2004 10:49
Re: Performance question for Xavier

10/21/2004 12:16
Re: Performance question for Xavier

10/29/2004 18:52
Re: Performance question for Xavier

11/02/2004 11:20




3

Created with FORUM 2.0.11