Bug 14527 - Performance on Macintosh for threaded application is not acceptable
Summary: Performance on Macintosh for threaded application is not acceptable
Status: RESOLVED INVALID
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Library (Xamarin.Mac.dll) ()
Version: 1.6.9
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Aaron Bockover [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2013-09-07 21:40 UTC by Phil Persson
Modified: 2013-09-26 12:47 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
test project (1.76 MB, application/octet-stream)
2013-09-07 21:51 UTC, Phil Persson
Details
Test case with windows forms removed (27 seconds for 15k lines) (6.00 KB, application/zip)
2013-09-26 12:47 UTC, Aaron Bockover [MSFT]
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Phil Persson 2013-09-07 21:40:26 UTC
I am attaching a simple multi-threaded application that performs work on large collections of strings.  On Windows and Linux I can easily use it with a string containing 150K lines but on the Mac due to performance constraints I have not been able to use it with large amounts of data.  On dual core machines with 4 GB of RAM and processing only 15,000 lines here are the processing times:
Windows - 46 seconds
Linux - 22 seconds
Macintosh - 3,944 seconds
Can something be done to improve the processing time on Mac?  This is for a product my company will be selling and right now I don't think we can even offer it for the Mac due to the performance.  Thank you!

Phil Persson
Persson Technologies
phil@perssontechnologies.com
Comment 1 Phil Persson 2013-09-07 21:51:59 UTC
Created attachment 4805 [details]
test project
Comment 2 Aaron Bockover [MSFT] 2013-09-26 12:42:16 UTC
This is not a Xamarin.Mac project. If you can recreate the test case as a console project (does not rely on Windows Forms (we do not support Windows Forms on Mac)), we can take a look.

I suspect that the performance issue might actually be related to the Windows Forms implementation itself, not Mono in general. Again, we do not support or recommend using Windows Forms on Mac, at all. In fact, it took 30 seconds for the test window to even display on screen.

Closing as invalid for now. Please re-open if you can recreate the performance issues outside of the context of Windows Forms.
Comment 3 Aaron Bockover [MSFT] 2013-09-26 12:47:24 UTC
Created attachment 4999 [details]
Test case with windows forms removed (27 seconds for 15k lines)

I've attached a modified test case that uses your "MainDriver" and "StringTransformationWorker" in a console project.

The running time for processing 15,000 strings on my OS X machine is on par with the time for Mono on Linux that you reported: 27 seconds (4 cores, 2.9 GHz Core i7, 8GB RAM).