Skip to content

optimization for mA_AC_sampling() #38

@RobTillaart

Description

@RobTillaart

Current implementation of mA_AC_sampling() takes ~20 ms per call (50 Hz assumed) as it samples a whole period.

If the wave is symmetric (fair assumption for AC) code could sample half the period and double that value.
Should reduce the duration to ~10 ms (50 Hz).
For 60 Hz it would save about ~8.4 ms.

As the sampling period is shorter, there is more time for other tasks.

Might also work for some other AC functions.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions