16,022,205 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by CommentFree (Top 4 by date)
CommentFree
24-Aug-24 14:33pm
View
These seem brilliant. The first solution assumes that the triangle constructor is a significant expenditure, and so a first-run-through doing something trivial in serial followed by parallelization for something complex is still better than serial for the complex task. That would be quite correct in this case as the triangle constructor does a bunch of math stuff.
The second approach seems like it would work straight away, and then you don't need the initial serial loop, which is my preference. Seems so trivial now! I'll run a few simulations of your 2nd solution in my head with small nPSEtriangles, and see if the numbers comes out right...at a glance it seems like it's correct?! Thanks!
CommentFree
24-Aug-24 14:26pm
View
I do math-computation intensive work, and I parallelize everything, and it always massively boosts performance.
CommentFree
24-Aug-24 14:19pm
View
Deleted
Oh it's a very large number of triangles to create, even with the triangles constructor being trivial, although it does do some computations to characterize each triangle. This section takes a few seconds to compute, and that could be reduced to sub-second on target machines with 32+ threads, I'm sure.
CommentFree
24-Aug-24 14:19pm
View
Oh it's a very large number of triangles to create, and the triangles constructor is not quite trivial, as it does do some computations to characterize each triangle. This section takes a few seconds to compute, and that could be reduced to sub-second on target machines with 32+ threads, I'm sure.