|
Bugzilla – Full Text Bug Listing |
| Summary: | System.Threading.Timer 20x slower than MSFT's | ||
|---|---|---|---|
| Product: | [Mono] Mono: Class Libraries | Reporter: | Ben Maurer <bmaurer> |
| Component: | CORLIB | Assignee: | Dick Porter <dick> |
| Status: | RESOLVED FIXED | QA Contact: | Mono Bugs <mono-bugs> |
| Severity: | Normal | ||
| Priority: | P3 - Medium | CC: | cmorgan, mono-bugs |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: |
Single thread timer scheduler
new patch updated patch fixing Dispose deadlock issue. rewritten patch |
||
|
Description
Thomas Wiest
2007-09-15 18:53:19 UTC
Created attachment 178610 [details]
rewritten patch
The patch doesn't easily apply anymore, so I rewrote it, with a few simplifications and a few bug fixes (mostly locking on Jobs and avoiding the Abort calls). I'll apply in a day or two if there are no objections.
Fixed in svn. For reference, the new code creates 10K timers in 1.5 seconds on my box. The old code dies with a "can't create thread" exception after 6 seconds. There are more optimizations possible, but this is already a big improvement (in the stability of the code, too). |