Re: Questions from a Beginner.
- Posted by jimcbrown (admin) May 15, 2009
- 1324 views
As I recall, your claims to EU's copying problems were shown to be false.
Ask Matt Lewis then. The problem was that compiler-introduced temporaries did increment the reference count making copy-on-write more expensive. Matt confirmed this.
From the same thread, http://openeuphoria.org/EUforum/index.cgi?module=forum&action=message&id=104536#104536
And earlier, http://openeuphoria.org/EUforum/index.cgi?module=forum&action=message&id=104531#104531
The first thing to note is that you have reminded me of that optimisation technique. Your version of the routine takes half the time than my original one. Even though you seem to be saying that it should be slower, it is fact much faster.
In other words, you claim your method is slower, and Matt is trying to explain why it is really faster.
Anyhow, the specific issue Matt is talking abuot seems to have been fixed in svn revision 1960:
- Fixed ASSIGN_SUBS so that assignment using a temp does not result in an extra reference count.
Or, perhaps, you could attempt to perform the benchmark yourself? And then show the numbers proving that Eu 4.0 is slower than Python, Perl, Lua, and Javascript?
No. Even programming a benchmark is too painful to code in EU for me. Anyway, you miss the point. I do not claim Python is 30 times faster than EU. However, the website claims that EU is 30 times faster than Python and Perl. So it is one of you who should prove this.
See my previous post. I, or rather Jeremy, already did.
(On a side note, the documentation should be updated to be more accurate, if that specific line has not already been fixed.)