Marginal optimization of UDDF import

This speeds up Aquadivelog imports marginally by doing lookup to used
equipments only instead of all equipment ever used.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2014-05-03 08:34:09 +03:00 committed by Dirk Hohndel
parent 7bcb85dd54
commit de89aefdcd

View file

@ -298,7 +298,7 @@
<xsl:value-of select="./@tank"/>
</xsl:variable>
<xsl:variable name="idx">
<xsl:value-of select="//equipment_used/tank_used[@id=$tank_idx]/gas_ref/@ref"/>
<xsl:value-of select="../../equipment_used/tank_used[@id=$tank_idx]/gas_ref/@ref"/>
</xsl:variable>
<event name="gaschange" type="11">