Skip to content

Parallelise the Multicolony functions - action #597

@janaobsteter

Description

@janaobsteter

The package is painfully slow when it comes to MultiColony processing so I'm parallelising it with foreach package. The problem is when all loops try to update the same SP slot at the same time - hence, not a problem if updating information for different colonies/individuals - such as in reQueen or supersede ...

  • createMultiColony is now parallelised:

    • the problem is that updateLastColonyId doesn't work within foreach, no idea why. So I preasign the colonyId and update the lastColonyId in SP at the end
  • reQueen is paralelised

  • next essential one is createCastePop (then used by addCastePop, replaceCastePop ...)

    • the problem is that lastId in SP is not udpated - we need to preasign the Ids OR change them subsequently - the latter would be easier and changing the Id of a Pop also change Ids in geno and haplo BUT doesn't change the ID in the pedigree

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions