Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0, 1.1, 1.2
-
None
-
None
-
jdk1.6.0_04, windows xp
Description
The RandomDataImpl.nextPoisson() is extreme slow for large lambdas:
E.g. drawing 100 random numbers with lambda = 1000 takes around 10s on my dual core with 2.2GHz.
With lambda smaller than 500 everything is fine. Any ideas?
RandomDataImpl r = new RandomDataImpl();
r.reSeed(101);
int d = 100;
long poissonLambda = 1000;
long st = System.currentTimeMillis();
for (int row = 0; row < d; row++)
System.out.println("delta " + (System.currentTimeMillis() - st));