[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: "Random" delays in execution
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 23 Oct 2008 12:03:14 -0200
> - the 2D array is 20 columns x 10 rows (200 elements)
> - If I allocate userdata to it, the program cycle takes typically 30 to
> 40msec but every n interations (were n could be any were from 15 to 25)
> it "stops" for 1700 to 2500msec!!!
Usually, this kind of problem (long pauses) is related to garbage
collection. But the size of your array (only 200 elements) seems too
small to make any impact about garbage. And the pauses seem too
long (2.5 seconds, is that right?). I would look for something else
(other garbage being created, as Jerome suggested).