performance enhancements
rtc: improve truncation algorithm