Article View: net.math.stat
Article #57S seems incredibly slow...
From: Dan Ts'o
Date: Sat, 17 Nov 1984 20:43
Date: Sat, 17 Nov 1984 20:43
29 lines
1223 bytes
1223 bytes
Hi,
S on our 11/750 - 4.2BSD seems very slow. I know that this situation
can be improved by binding commonly used functions into S's executive. How
much of an improvement can reasonably be expected ? Any hints as to which
functions are good candidates ?
Here are two S examples which take 10-30 minutes to execute:
s _ matrix(0, 20, 20)
for (i in 1:20) {
for (j in 1:20) {
s[i,j] _ sin(j/10)
}
}
and
m _ matrix(read("/tmp/junk"), 100, 100) #read 100x100 matrix
We are beginning S users and are thus naive about the "best" way of
doing things. Thanks.
Cheers,
Dan Ts'o
Dept. Neurobiology
Rockefeller Univ.
1230 York Ave.
NY, NY 10021
212-570-7671
...cmcl2!rna!dan
Technical Details
Message-ID:
<316@rna.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!rna!danShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site rna.UUCP Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!rna!dan From: dan@rna.UUCP (Dan Ts'o) Newsgroups: net.math.stat Subject: S seems incredibly slow... Message-ID: <316@rna.UUCP> Date: Sat, 17-Nov-84 15:43:37 EST Article-I.D.: rna.316 Posted: Sat Nov 17 15:43:37 1984 Date-Received: Sun, 18-Nov-84 22:38:31 EST Organization: Rockefeller Neurobiology, NYC Lines: 29