From: Marc Maurer (email@example.com)
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
Op zo 21-09-2003, om 17:24 schreef Robert Wilhelm:
> my patch replaces
> - m_pMyBrokenContainer = NULL;
> + 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.
-- Marc Maurer <firstname.lastname@example.org>
This archive was generated by hypermail 2.1.4 : Sun Sep 21 2003 - 12:39:54 EDT