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 » Developing U++ » U++ Developers corner » Impressive improvement in stl::vector when dealing with raw memory.
Re: Impressive improvement in stl::vector when dealing with raw memory. [message #59174 is a reply to message #59173] Mon, 14 November 2022 14:31 Go to previous messageGo to previous message
Lance is currently offline  Lance
Messages: 656
Registered: March 2007
Contributor
Victor:

Thank you! I was suspecting it's probably just because my CPU lack certain optimisation.

The push_back()/emplace_back() action on raw bytes without reserve first is the most important indicator of efficiency. stl::vector is finally catching up , it seems.

insert/remove in the beginging is also story telling but this if of less importance, because a vector is not designed for frequent add/remove from position other than close to the end. Anyway in this respect, both std::vector and Upp::vector perform at par.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: WebSocket client SSL support?
Next Topic: theide with libclang
Goto Forum:
  


Current Time: Sun Jun 08 22:48:05 CEST 2025

Total time taken to generate the page: 0.03963 seconds