[asio] [date_time] boost::asio::deadline_timer performance

25 Apr
2011
25 Apr
'11
5:09 p.m.
Hi all, while profiling a boost::asio-based application with heavy use of timers, I noticed many CPU cycles being burnt inside a gregorian::date::date constructor, which I traced down as being called from asio::deadline_timer::expires_from_now. As asio::deadline_timer just specializes asio::basic_deadline_timer using posix_time::ptime, I assume this can be tuned by using another time implementation. Is there a particular implementation targeted at low overhead, ideally with high accuracy? Are there other ways of tuning timer performance? Best regards, Isidor -- Isidor Zeuner http://quidecco.de/cms/blog/
5165
Age (days ago)
5165
Last active (days ago)
0 comments
1 participants
participants (1)
-
Isidor Zeuner