问题: Optimising software

Invariant optimisation code movement

0  

Imagine I have a nested loop and I do lots of work in this nested loop. Wouldn't it be more efficient to do some of this work incrementally such as when objects are created?

YAML 想法

Invariants such as item.size() < 100 or this number greater than this number are really powerful for enforcing behaviour.

I propose we use invariants to optimise code.

chronological,


(别通知) (可选) 请,登录