Lists of optimisations Was: Re: type string
- Posted by "Carl R. White" <C.R.White at SCM.BRAD.AC.UK> Mar 16, 1999
- 447 views
On Tue, 16 Mar 1999, Roderick Jackson wrote: ] You know, this all started as a question, and took off into a fairly ] profitable intellectual exercise... I'm really learning a lot from all ] of this. It's threads like this that most of us (IMO/AFAICT) on this list thrive on. It's what keeps me here anyway. It trancends whatever platform you're developing on, and almost becomes a lesson in general algorithmics, rather than good old Euphoria. ] I think we need to gather all of these speed-boosting tips together; I ] know I didn't see THIS one in the Euphoria docs. It's not possible to write down all possible speed up tricks. It might be possible to come up with general ideas on how to do something, and how to optimise them. But to write everything down? :) e.g. if condition1 or condition2 then -- something else -- womble end if becomes: if condition1 then -- something elsif condition2 then -- same something else -- womble endif You'll find that in most cases code optimised for speed is exponentially larger then code optimised for space. After all, I'm the one around here who likes finding "pure" Euphoria ways of doing things, just like in the abs() wars, and my solutions tend to be fairly near the mark for being the slowest example available :) Carl PS Minor niggle. There are one or two folks who don't have forced linebreaks every 74 characters or so in their mails. This isn't really a bad thing, but it makes it a bit of a hassle to reply to your messages. For instance, to reply to this message I had to physically insert CRLFs and ']'s into the text I quoted from the original, because there were no linebreaks in each paragraph. Don't get me wrong, I'm not intentionally picking on anyone, it just bugs me sometimes... :( :) -- Carl R White -- Final Year Computer Science at the University of Bradford E-mail........: cyrek- at -bigfoot.com -- Remove hyphens. Ta :) URL...........: http://www.bigfoot.com/~cyrek/ Uncrackable...: "19.6A.23.38.52.73.45 25.31.1C 3C.53.44.39.58"