take-nth transducer could be faster without rem

Description

The take-nth transducer is calling rem on each index, which is relatively expensive compared to a zero? test. It could just count down from N instead as the step size is fixed.

Environment

Mac OS X 10.10.2, JDK 1.8.0_31

Assignee

Unassigned

Reporter

Steve Miner

Labels

Approval

Triaged

Patch

Code

Affects versions

Priority

Major
Configure