Re: [BLACKBOX] Real time & garbage collection

From: [at]} <Robert>
Date: Mon, 27 Jun 2011 21:30:19 +0100

----boundary-LibPST-iamunique-548636271_-_-
Content-type: text/plain

Doug

The only possibly relevant idea I can offer is that you can force a garbage
collection (Kernel.Collect).

Maybe if you do this before your critical section of code there will be less
time spent collecting within it ... just a wild guess!


But a 1 second 'hang'; that seems far too long for a collection?


Cheers

Robert



On 27/06/2011 09:20 PM, Douglas G. Danforth wrote:
> Folks,
>
> I have produced a product for a company (surprisingly in Switzerland)
> that smooths the position of detected eyes from a webcam.
>
> I show two sets of eyes: the original, as given to me by a face
> detection dll and my smoothed version of the original.
>
> Every once in a while the images seem to hang (1 second) and
> then start to move again.
>
> The author of the face dll claims he doesn't see that effect.
>
> So, I am wondering whether the BlackBox garbage collector is
> kicking in. This is just a hypothesis and want to explore it with
> the rest of you.
>
> How can I determine (be notified) when the garbage collector starts
> and stops?
>
> Is it possible to inhibit the garbage collector? That is, can I create a
> safe region of code where the garbage collector will not be called?
>
> I don't believe I am doing NEW during the eye smoothing operations
> but then again I may have over looked a place or places in my code
> where I do. How can I determine whether NEW is being called while
> the code is running?
>
> By pressing ctrl-alt-del I can watch the total amount of memory that my
> process is using and it seems to be fairly constant so if I am calling
> NEW it is not of any great amount.
>
> Does the garbage collector mark and sweep through all of allocated memory
> or just memory that has been added since the last time it was called (just
> curious)?
>
> Do you have a suggestions? Any tools in BlackBox that could answer some of
> these questions?
>
> -Doug Danforth
>
> --------------------------------------------------------------------------------
>
> No virus found in this message.
> Checked by AVG - www.avg.com <http://www.avg.com>
> Version: 10.0.1388 / Virus Database: 1513/3729 - Release Date: 06/27/11
>
> ---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to
> LISTSERV{([at]})nowhere.xy
>


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-548636271_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body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0b29scyBpbiBCbGFja0JveCB0aGF0IGNvdWxkIGFuc3dlciBzb21lIG9mXHBhcg0K
PiB0aGVzZSBxdWVzdGlvbnM/XHBhcg0KPlxwYXINCj4gLURvdWcgRGFuZm9ydGhccGFyDQo+XHBh
cg0KPiAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxwYXINCj5ccGFyDQo+IE5vIHZpcnVzIGZvdW5k
IGluIHRoaXMgbWVzc2FnZS5ccGFyDQo+IENoZWNrZWQgYnkgQVZHIC0gd3d3LmF2Zy5jb20gPGh0
dHA6Ly93d3cuYXZnLmNvbT5ccGFyDQo+IFZlcnNpb246IDEwLjAuMTM4OCAvIFZpcnVzIERhdGFi
YXNlOiAxNTEzLzM3MjkgLSBSZWxlYXNlIERhdGU6IDA2LzI3LzExXHBhcg0KPlxwYXINCj4gLS0t
LSBUbyB1bnN1YnNjcmliZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0aCBib2R5ICJTSUdOT0ZGIEJMQUNL
Qk9YIiB0b1xwYXINCj4gTElTVFNFUlZATElTVFMuT0JFUk9OLkNIXHBhcg0KPlxwYXINClxwYXIN
ClxwYXINCi0tLS1ccGFyDQpUbyB1bnN1YnNjcmliZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0aCBib2R5
ICJTSUdOT0ZGIEJMQUNLQk9YIiB0byBMSVNUU0VSVkBMSVNUUy5PQkVST04uQ0hccGFyDQp9
----boundary-LibPST-iamunique-548636271_-_---
Received on Mon Jun 27 2011 - 22:30:19 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:13 UTC