U++ framework
Do not panic. Ask here before giving up.

Home » Developing U++ » U++ Developers corner » Impressive improvement in stl::vector when dealing with raw memory.
Re: Impressive improvement in std::vector when dealing with raw memory. [message #59194 is a reply to message #59191] Mon, 21 November 2022 16:34 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
The most likely explanation:

std::vector usually grows by factor 2 which leads to average 50% overhead.

With Upp::Vector, I have decided that things being fast enough, we can use factor 1.5 and have only 25% overhead. Which means we do more reallocations to save memory.

EDIT: Sorry, now rereading the thread you have figured that out Smile

Mirek

[Updated on: Mon, 21 November 2022 16:35]

Report message to a moderator

 
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 Apr 26 09:04:19 GMT+2 2026

Total time taken to generate the page: 0.00659 seconds