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++ Core » Vector performance on a specific situation
Re: Vector performance on a specific situation [message #40137 is a reply to message #40131] Wed, 19 June 2013 09:03 Go to previous messageGo to previous message
crydev is currently offline  crydev
Messages: 151
Registered: October 2012
Location: Netherlands
Experienced Member
Thank you for your answers.

sizeof(T) is 16-bytes.

struct
{
     unsigned int;
     int;
   
     struct
     {
          int;
          int;
     }
}


What my code does is reading a struct instance from the vector and editing the two integer fields in the sub-struct. What I did now, also stated in my first post, is copying the Vector.GetCount() / 8 count of structs from the vector into an array and performing operations there. Afterwards I copy them back into the vector at the original positions.

As I stated, it seems just as fast, the profiler also notes so. Can I conclude from that finding that this operation is faster to prevent cacheline sharing?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Error in XML Read
Next Topic: Troubles compiling code with -fPIC
Goto Forum:
  


Current Time: Fri Jun 20 08:37:11 CEST 2025

Total time taken to generate the page: 0.03467 seconds