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++ » UppHub » Fast memory pool with tests
Fast memory pool with tests [message #22854] Sat, 22 August 2009 13:54
gridem is currently offline  gridem
Messages: 45
Registered: August 2008
Member
Solving the problem with saving the threads contexts I developed the package to work with memory pools using lock-free approach. The main goal is to perform the allocation from preallocated vector storage without any fail and as fast as possible.

There are two classes:
1. MemoryPool - uses simple algorithm for allocation
2. MemoryPoolFast - uses more complex algorithm.

Surprisingly that both algorithms show nearly the same results.

The package contains AtomicValue class to work with values atomically. It can be used separately.

NOTE: The packages were developed only for Win32 platform.

Regards, Grigory.
Previous Topic: SysInfo, String functions and cygwin
Next Topic: New packages announcement
Goto Forum:
  


Current Time: Sat Apr 20 08:50:01 CEST 2024

Total time taken to generate the page: 0.71089 seconds