On Thu, 2007-08-30 at 22:19 +1000, skaller wrote:
> FYI, I have these number on the Shootout nbody problem,
> code below.
>
> C: 9 seconds.
> Felix: 43 seconds.
Hmm .. I got it down to 35 seconds by hand editing the
generated C++, removing the tuple construction.
But now I'm baffled: still 3.5 times slower.
I got rid of the tupling like:
((PTF bodies).data[j]).vel.data[0] +=
d.data[0] * _i5604_v5604_y;
((PTF bodies).data[j]).vel.data[1] +=
d.data[1] * _i5604_v5604_y;
((PTF bodies).data[j]).vel.data[2] +=
d.data[2] * _i5604_v5604_y;
The only thing left if adding the index j every access ..:)
--
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language