From: Marc Maurer (j.m.maurer@student.utwente.nl)
Date: Sun Sep 21 2003 - 12:31:54 EDT
True, this patch is perfect. We could introduce a CLEARP define which
just just that to improve our performance in other places of our code as
well...
Marc
Op zo 21-09-2003, om 17:24 schreef Robert Wilhelm:
> Martin,
> 
> my patch replaces 
>  -       m_pMyBrokenContainer = NULL;
> 
> with 
> 
>  +        if(m_pMyBrokenContainer) 
>  +               m_pMyBrokenContainer = NULL;
> 
> I check first if m_pMyBrokenContainer is not NULL and then
> set it to NULL in these cases.
> The overall effect is exactly the same as before that all 
> m_pMyBrokenContainer are NULL afterwards.
> 
> The second method is just a bit surprisingly much faster
> by avoiding writing NULLs to memory locations which already
> have NULL value.
> 
> Robert
> 
-- Marc Maurer <j.m.maurer@student.utwente.nl>
This archive was generated by hypermail 2.1.4 : Sun Sep 21 2003 - 12:39:54 EDT