Re: Slow memory allocation
- Posted by Al Getz <Xaxo at aol.com> Jun 12, 2005
- 579 views
Hello again, Im not sure if i replied to the correct post, so here's the post i meant to reply to: >I tried this on two systems both running Windows XP Pro, > the latter is 2GHz with 1.5 Gb memory, there it took 25 seconds. > What I found most interesting is that append(), >&= and assignment gave the same result, 25 seconds. >table[i] = line is taking around 24 seconds of those. Your system is faster than mine and has more memory so i would have expected it to read the file faster than on mine, and mine reads a 2,900,000+ byte file in about a second. I tried a non-bindw'd .exw file and it was the same, and i tried the .exw file with Version 2.5 of Euphoria (PD Beta version) and it was the same, about one second to read the whole file into the sequence. What i would do is try that exact code fragment (in the previous post) without the parse line and see if it works faster. If not, i would wonder if you have any active virus software or the page file was moved by a non-Windows disk manager. If it does in fact speed up, then perhaps you should do your parsing AFTER the whole file is read into the sequence. I've been using Euphoria for several years now and i've had my editor up and running for most of them, and it's always been fast even though im using 'append' to store the lines in the sequence. Pete Lomax recently started a new editor which uses basically the same technique and that is about the same speed (fast). This makes me think something else is wrong. Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"