[PATCH] Stop doing the (very expensive) pow() calculation pointlessly

Linus Torvalds torvalds at linux-foundation.org
Sun Jan 19 14:21:31 UTC 2014

On Sun, Jan 19, 2014 at 2:06 PM, Linus Torvalds
<torvalds at linux-foundation.org> wrote:
> But I actually think that's more correct! Without that, your TTS is
> calculated as "you can go up 3 meters every ten seconds". Which is
> borderline fine, but is that really a good assumption? That's
> 18m/minute. Not a safe ascent rate.

Ugh. No. It has ascent_s_per_deco_step to protect against that. Which
is calculated *after* we've seen that we're ok to go up to that next

So the TTS code is actually being overly conservative.


More information about the subsurface mailing list