Hi All,
I've created STL allocator which creates memory pool in the beginning, and all maps and vectors will take memory from that memory pool.
But...I am observing that application has become drastically slow.
I was under impression that after implemeting pool, application will fasten, but it is doing other ways.
I've implemeted doubly linked list to maintain the nodes occupied or free in the pool.
My C++ application was able to insert 40000 records in Oracle DB in 5 min. if they use default allocators, and now it can only insert 5000 records.
Has anybody faced this kind of problem with custom allocators of memoty pool.
-Thanks
-Mavrik
I've created STL allocator which creates memory pool in the beginning, and all maps and vectors will take memory from that memory pool.
But...I am observing that application has become drastically slow.
I was under impression that after implemeting pool, application will fasten, but it is doing other ways.
I've implemeted doubly linked list to maintain the nodes occupied or free in the pool.
My C++ application was able to insert 40000 records in Oracle DB in 5 min. if they use default allocators, and now it can only insert 5000 records.
Has anybody faced this kind of problem with custom allocators of memoty pool.
-Thanks
-Mavrik
Comment