Boost logo

Boost :

From: Avi Revivo (revivoavi_at_[hidden])
Date: 2007-11-04 13:10:11


Apperantly the cause of the problem was the usage of a utility called Global
Flags that made tweaks in the registery and modified the operating system
behavior when handling memory.

It was not changed back by the person who performed the tweak and failed to
let me know about.

Thanks alot for your help,
Avi

Joaquín Mª López Muñoz wrote:
>
> Avi Revivo <revivoavi <at> hotmail.com> writes:
>
> [...]
>> After dissecting i found out that the only problem is the the actual
>> invocation of delete().
>>
>> Code executed:
>> **********************************************************
>>
>> int *arrayOfPointers[100000];
>>
>> for(int i = 0; i < 100000; i++)
>> {
>> arrayOfPointers[i] = new int;
>> }
>>
>> for(int i = 0; i < 100000; i++)
>> {
>> delete arrayOfPointers[i];
>> }
>>
>> **********************************************************
>>
>> Excuting the for loop that deletes takes 25 times slower then any other
>> computer tested. The average time for a single delete operation is longer
>> in
>> by factor of 25.
>
> Umm... Still it looks like a cache issue. Can you try doing the
> deleteion in reverse order, from 99999 down to 0? Any difference,
>
> Joaquín M López Muñoz
> Telefónica, Investigación y Desarrollo
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>

-- 
View this message in context: http://www.nabble.com/Mutli-index-container---performance-varation-when-erasing-large-amount-of-rows-in-different-computers-tf4717124.html#a13576030
Sent from the Boost - Dev mailing list archive at Nabble.com.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk