Click here to Skip to main content
13,298,551 members (77,523 online)
Click here to Skip to main content


43 bookmarked
Posted 16 Jun 2009

Session of low-level optimization of memory usage in C++ programs with total exposure

In this article, we will try to make our algorithms work faster using the methods of low-level optimization of memory allocation in C++.
#ifndef CMN_ARENA_WIN32_H
#define CMN_ARENA_WIN32_H

#include "windows.h"
#include "exception"
#include "cmnArena.h"

namespace utils

class CArenaCounter:public IArenaGlobalCounter
    long m_globalCount;
        : m_globalCount(0)
    virtual void ChangeGlobalCount(int iValue)
        InterlockedExchangeAdd(&m_globalCount, iValue);
    virtual long GetGlobalCount() const
        return m_globalCount;

} // utils


By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Authors

No Biography provided

Apriorit Inc
Apriorit Inc.
Hungary Hungary
This member doesn't quite have enough reputation to be able to display their biography and homepage.
Group type: Organisation

32 members

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.171207.1 | Last Updated 23 Jun 2009
Article Copyright 2009 by Victor A. Milokum, Apriorit Inc
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid