- Use a Thread class to monitor the rate.
- Use ["cpp:array"] optimization to avoid double copy.