Author Topic: Question about persistence of swap files  (Read 2293 times)

Offline gvanhau

  • PixInsight Old Hand
  • ****
  • Posts: 345
Question about persistence of swap files
« on: 2016 February 09 04:34:44 »
Hello
I've seen the following behavior using PixInsight Integration module:

If I add some more pictures to the image integration module, the first images (from previous integration) run very quick, but the new added pictures take some time, because there is some math applied to them.
I may be wrong, but I remember having seen in the console, that values for previous images were taken from swap??
Some times, this happens even if I load a saved proyect, and the previous integration was done a few days ago.

Now my question is:  are swap files recorded together with projects? or what is the logic behind this behavior?

Geert
Geert Vanhauwaert

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Question about persistence of swap files
« Reply #1 on: 2016 February 09 09:44:11 »
there is a cache file that holds image statistics for ImageIntegration. that file is separate from any swap files. i don't know how long cache entries live, or what the cache policy is, but i think it persists across launches of PI. check the tooltip for "Use File Cache" in ImageIntegration for more info.

swap files are definitely recorded with a project. in fact, this is how the project functionality in PI is implemented - all the active swap files for the selected workspace are copied to the project directory when you save a project. when you load a project, all those swap files are copied from the project to the temporary directory. i think this is why loading a project has to close all the stuff in all workspaces. loading a project essentially restores the working state of PI.

of course juan should correct me if any of the above is wrong, but this is what i've learned as a user of PI.

rob

Offline gvanhau

  • PixInsight Old Hand
  • ****
  • Posts: 345
Re: Question about persistence of swap files
« Reply #2 on: 2016 February 09 10:13:09 »
Thank you Rob, very clear explanation.
Geert Vanhauwaert

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Question about persistence of swap files
« Reply #3 on: 2016 February 09 10:41:19 »
no problem -

one other thing i just remembered... at least in older versions of PI i think that even if "evaluate noise" is unchecked, as long as "use file cache" is checked, II still evaluates the noise even if it does not subsequently use it as a weighting factor. i would have to check to see if this is still the case, it was a long while ago when i discovered that.

rob