[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
deferred deallocation of local objects
From: |
Derek Zhou |
Subject: |
deferred deallocation of local objects |
Date: |
Mon, 13 Oct 2003 11:07:45 -0700 |
User-agent: |
KMail/1.5.3 |
Hi,
In NSConnection.m -removeLocalObject:, all local objects are unconditionally
deferred for deallocation by 30 seconds. According to the comments there, it
is to avoid oops when the remote end vend the object onwards. Why is this
nessesary? It looks rather ugly to me. 30 seconds is a pretty long time; if
one keeps pushing objects to the far end it can consume huge amount of memory
or even get out-of-memory condition. If we do not have elegant solution at
least we should make it per-application overridable by using defaults.
Derek
- deferred deallocation of local objects,
Derek Zhou <=