take transducer optimization

Description

A basic refactoring to remove the let form and only requires a single counter check for each iteration, yields an 25% performance increase. With the patch, 2 checks are only required for the last iteration (in case counter arg was <= 0)...

Environment

None

Assignee

Unassigned

Reporter

Karsten Schmidt

Approval

Triaged

Patch

Code

Affects versions

Priority

Minor
Configure