Feature #978

Updated by Serge Heiden about 4 years ago

Currently TXM opens loads every subcorpus and partition at startup.

This behavior:
* takes some time to complete (may take a long time on a portal, preventing fast portal startup or restart)
* uses memory, even if the subcorpus or the partition is not used in the current session (this may prevent users to work on a corpus in low memory configurations even if the machine is able to work on the corpus)

Solution:
* for each command using a subcorpus, if the subcorpus is opened there do the usual work, else open load the subcorpus then do the usual work
* for each command using a partition, if the partition is opened there do the usual work, else open load the partition then do the usual work

Remarks:
* lazy loading can be an option, global or per corpus
* lazy loading could allow us to offert corpus loading to portal users (because of fast portal restart)

Further features:
* in case of diagnostic of non completion for a command because of low memory, some subcorpora or partitions could be unloaded to try to complete the command
** some results could also be garbagecollected for the same reasons

Back