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++ TheIDE and Library: Releases and ChangeLogs » New allocator...
New allocator... [message #16093] Tue, 27 May 2008 19:46 Go to previous message
mirek is currently offline  mirek
Messages: 14265
Registered: November 2005
Ultimate Member
After encountering the shortcomings of memory allocator in heavily multithreaded apps, I have implemented a new one (already 5th Wink.

There are two advantages:

- allocator is non-locking for in-thread allocations, only remote-free locks

- false sharing - cacheline contention - is no more a problem.

Moreover, surprisingly it is a bit faster in single-threaded apps too.

However, this is a very fragile piece of code (took me 7 days to develop those 800 lines), I have tested it in a test with one bilion allocations; anyway if you have any mission critical software, I recommend to backup Core to your app nest (so that older version will be used) (and wait a week or two Wink

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Fixed most Win64 warnings.
Next Topic: One more sql news
Goto Forum:
  


Current Time: Sun Jul 06 18:18:00 CEST 2025

Total time taken to generate the page: 0.04070 seconds