Strings
- Posted by Mathew Hounsell <mfh03 at UOW.EDU.AU> Aug 05, 1999
- 708 views
Yes I'm going to wade into this again. 1st) memory conservation is good especially when there is a large amount of waste. 2nd) speed decrease is not nice, but acceptable because most importantly ***Type checking reduces error's*** It also reduce's the need for manual error detection which can get quite omplex and slow and consuming with euphoria. The alternative is to let the routine die from an obscure error and let the finger be pointed at the routine it dies in rather than the one who started the problem. I will again say string's are good. Consider the standard indexing on a sequence, it must require quite complex operation's. Where as the indexing on a string would require a simple bounds check, offset calculation and a peek. As intel chips align to 4 bytes. Unless the string has a length which is a multiple of 4 there is a gap of up to 3 bytes to append into reducing the time for that. There are many other benefits but I'm going to diner. ------------------------- Sincerely, Mathew Hounsell mat.hounsell at excite.com