[Spice_discussion] hash function of SPICE

Bogdan Nicula bogdan at oma.be
Sun Nov 29 15:33:02 PST 2009


Hello SPICE developers -

While profiling a program using the wonderful SPICE C toolkit, I've noticed that most of the time was spent in the hashing function in zzphsh and in s_copy (also s_cmp was quite high in the profile). The program is using a parameterized dynamic frame defined by two vectors. I figured out what was happening and I could make my program over four times faster by simply building the frame explicitly in the code with twovec_c().

Similarly, running the first example from:
http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfoclt_c.html
shows those two functions at the top.

Could it be that many programs using SPICE would be made faster by improvements in this area?

Best regards and thank you for SPICE.

Bogdan


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2489 bytes
Desc: not available
Url : http://naif.jpl.nasa.gov/pipermail/spice_discussion/attachments/20091130/1f3c2d40/smime.bin


More information about the Spice_discussion mailing list