Changeset e0e77e


Ignore:
Timestamp:
Apr 28, 2021, 10:02:49 PM (4 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
564f17
Parents:
2390e6
git-author:
Frederik Heber <frederik.heber@…> (04/17/21 16:46:43)
git-committer:
Frederik Heber <frederik.heber@…> (04/28/21 22:02:49)
Message:

Switch off defragmenting of World's atomic id pool.

  • with increased undos that rely on the atom id to remain, we cannot defrag the id pool. Moreover, there should be enough ids in the int range. Hence, there is no direct need for it.
  • In the World the max values for the atomic id pool are set to 0 and if done so, the defragmentation will never be performed.
Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/IdPool_impl.hpp

    r2390e6 re0e77e  
    9191void IdPool<T,idpolicy>::defragIdPool()
    9292{
     93  // check if defragmentation is disabled
     94  if ((MAX_FRAGMENTATION_SKIPS == 0) || (MAX_POOL_FRAGMENTATION == 0))
     95    return;
    9396  // check if the situation is bad enough to make defragging neccessary
    9497  if((numDefragSkips<MAX_FRAGMENTATION_SKIPS) &&
  • src/World.cpp

    r2390e6 re0e77e  
    10631063    atoms(this),
    10641064    selectedAtoms(this),
    1065     atomIdPool(0, 20, 100),
     1065    atomIdPool(0, 0, 0),
    10661066    molecules(this),
    10671067    selectedMolecules(this),
Note: See TracChangeset for help on using the changeset viewer.