Gary Doades wrote: > > I'm not sure how you get 34000 records from 6000 words. Surely you > should get less not more. > >> it would run for at least a minute... that's kind of weird... >> > > Are you sure it is just the above code that is taking a minute and not > the bit of code that counts the words? > > What hardware is this on exactly?
it is 34000 records because it is actually count up phrases instead of words... for example, "a quick brown fox jumps over the lazy dog" i will actually count phrases such as "a quick" "a quick brown" "a quick brown fox" etc... so the final result is 34000 entry hashes, mapping to frequencies and word counts. the hardware should be pretty good... it is the HP TouchSmart IQ804... with a Core 2 Duo and hard drive ST3320820AS which is 7200rpm, 8MB buffer. hm... makes me wonder if the db is just 4MB, how come the hard drive buffer 8MB didn't totally handled it in its RAM and be super fast. did it actually force write to the physical disc? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

