[SERVER-5557] Timer class and curTime* on Linux are too slow. Created: 09/Apr/12 Updated: 24/Jul/18 Resolved: 26/Feb/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | 2.2.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Andy Schwerin | Assignee: | Andy Schwerin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux, all non-Windows. |
||
| Backwards Compatibility: | Fully Compatible |
| Participants: |
| Description |
|
currentTimeMillis, and the timer class use a get-time-of-day related syscall to find out what time it is. This is too slow for high performance timers. |
| Comments |
| Comment by Andy Schwerin [ 31/May/12 ] |
|
The Timer class is remedied on Linux, and curTime* aren't causing regressions, so further work is postponed. |
| Comment by auto [ 23/Apr/12 ] |
|
Author: {u'login': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@10gen.com'}Message: Also supports systems that implement POSIX's clock_gettime() (i.e., FreeBSD). |
| Comment by auto [ 19/Apr/12 ] |
|
Author: {u'login': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@10gen.com'}Message: |