Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » multi-threading slower than single thread
Re: multi-threading slower than single thread [message #25242 is a reply to message #25041] Mon, 15 February 2010 12:44 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
nixnixnix wrote on Mon, 08 February 2010 19:34

An MT-friendly version of RTIMING would be extremely handy - I know you have a lot of time on your hands Smile

Not 100% sure about this but it seems that casting from Value to double was another big bottleneck - does that make any sense?



Depends, while O(1) in principle, I would not use Value e.g. to represents matrix cells for Gauss elimination method Smile

Also, one possible issue is that even if there is 'int' in Value, it is automatically converted to 'double'. 'int' -> 'double' conversions can take quite a long time on many CPUs, because int and fp pipelines are usually running independent and this conversion therefore has to stall the whole pipeline.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Linux MT problems with time functions
Next Topic: Why ie cannt catch messages from keyboard and mouse
Goto Forum:
  


Current Time: Tue May 07 18:49:53 CEST 2024

Total time taken to generate the page: 0.01403 seconds