swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nselect/uniformDoubleRand is the source of my java program slowdown


From: Paul E Johnson
Subject: Re: Nselect/uniformDoubleRand is the source of my java program slowdown
Date: Thu, 22 Feb 2001 11:12:39 -0600

"Marcus G. Daniels" wrote:
> 
> >>>>> "PJ" == Paul E Johnson <address@hidden> writes:
> 
> PJ> I think I did this because I could get Swarm's NSelect to work
> PJ> with Java classes.
> 
> You'll probably get a significant speed-up if you get the Objective C version
> working -- it looks to me like it should. 

Oh, I remember. I did not understand this before, but I do now.  I think
the problem is that NSelect's select$from$into is not declared in Swarm
as a static method. If I try to use it, the compiler says:

Recruiter.java:516: non-static method
select$from$into(int,java.lang.Object,java.lang.Object) cannot be
referenced from a static context
        NSelect.select$from$into( number, listplaceholder1,
listplaceholder2);
               ^
> If not, send me a test case
> and I'll make it work.  
Can do later if my previous surmise is wrong.

>You might also try the Colt library in this context.
 
Yes. I just tried that, even before you said it! Using Colt's static
Uniform object in NSelectPJ reduced the runtime from 7min50sec to
2min30sec, a pretty big improvement.  I'm getting down into the 1/2 as
fast as Objective-C range, so some of the little optimizing steps will
start to make a difference.  I hope.


-- 
Paul E. Johnson                       email: address@hidden
Dept. of Political Science            http://lark.cc.ukans.edu/~pauljohn
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66045                FAX: (785) 864-5700

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]