Group Abstract Group Abstract

Message Boards Message Boards

1
|
9.1K Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Improve Wolfram StarData performance?

Posted 10 years ago

My tests of using AstronomicalData versus StarData show that StarData requests are 15 times slower for the exact same request. Can anyone make a recommendation to improve the sample test below?

Length[m1 = AstronomicalData["ClassMStar"]]

(* Out: 4258 *)

Timing[
     Length[
 listClassMStar =
  {AstronomicalData[#, "Name"], AstronomicalData[#, "HDNumber"], 
   AstronomicalData[#, "SpectralClass"], AstronomicalData[#, "BVColorIndex"], 
   AstronomicalData[#, "Effectrature"], AstronomicalData[#, "Mass"], 
   AstronomicalData[#, "Luminosity"], AstronomicalData[#, "AbsoluteMagnitude"], 
   AstronomicalData[#, "ApparentMagnitude"], AstronomicalData[#, "ConstellationName"]} & 
/@ m1]]

(* Out: {45.5534, 4258} *)

Timing[
 Length[
  listClassMStar =
   StarData[
    m1, {"Name", "HDNumber", "SpectralClass", "BVColorIndex", "EffectiveTemperature", 
         "Mass", "Luminosity", "AbsoluteMagnitude", "ApparentMagnitude", 
         "ConstellationName"}
   ]
  ]
 ]

(* Out: {702.228, 4258} *)

POSTED BY: Joseph Karpinski
3 Replies
POSTED BY: Joseph Karpinski

I think they expanded their databases with much more new data, and split it up for Planets and for Stars separately (i guess). These requests are basically database requests, so this might take additional time? It seems a bit long indeed. The data is of order megabyte so that takes a second to transfer nowadays. What's happening the other time? not sure...

You can send them a 'bug' report, and mark it as a (big) speed regression, attaching a notebook with both examples. They might look in to it....

POSTED BY: Sander Huisman

Parallelisation?

LaunchKernels[8]
AbsoluteTiming[Length[listClassMStar = ParallelMap[StarData[m1, #] &, vars]]]

takes 188 seconds for me... Apart from that i don't think you can really speed these calls up I'm afraid...

POSTED BY: Sander Huisman
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard