mahout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: Unit test lag?
Date Sun, 17 Jan 2010 20:02:03 GMT
That might help if the random class is loaded only once.

If the different tests each use a new class loader (seems unlikely) then the
static stuff will be executed multiply and the problem will be retained.


On Sun, Jan 17, 2010 at 11:55 AM, Sean Owen <srowen@gmail.com> wrote:

> Am I right that running tests in 1 JVM instead of n JVMs helps
> mitigate this? because I just committed that change.
>
> On Sun, Jan 17, 2010 at 7:49 PM, Ted Dunning <ted.dunning@gmail.com>
> wrote:
> > It doesn't affect the random numbers being generated.
> >
> > But it does eat bits of entropy from /dev/random.  That can then get
> starved
> > and block until more entropy is derived.  Since the reading is done in a
> > static block instead of on construction, the cost can't be avoided.
> >
>



-- 
Ted Dunning, CTO
DeepDyve

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message