One of the major enhancements delivered in 2.40 has been the internal process of capturing of “linkages” during the recording. This process has been overhauled for extremely high volume linkage capture.
The previous algorithm for capturing of linkages during the recording saw internal tables of linkages getting larger and larger as each linkage was captured. This was fine for smaller volumes, but as the volumes increased (in particular with long running batch jobs), this added an overhead that was not acceptable in these exceptional circumstances.
The logic has been reworked so that as a business transaction progresses, the linkages that are captured are also saved down on a regular basis during the recording (rather than accumulating and getting larger and larger).