Brian Adkins wrote:
M. Edward (Ed) Borasky wrote:
Avdi Grimm wrote:
If you can point me to the Rails newsgroup, I'll try subscribing even if
it doesn't show in Thunderbird. If you're referring to a mailing list
instead, that is less desirable to me, but I could make use of it for
Rails posts that are less relevant to Ruby.
The best place to look for ruby-related mailing lists and newsgroups
is http://www.ruby-forum.com/\. You can find a link to the Rails
mailing list from there. You may find it easier to use the ruby-forum
frontend, though, because it's a very high-volume list.
That said, I concur that ActiveRecord has wider applicability than
just Rails, and I find this an interesting topic of discussion.
Yes, I'd like to see this discussion continue on the Ruby list, because there are some things to be learned from experiences with ActiveRecord. So, some questions for Brian:
1. What's your platform, and what version of Ruby are you running?
$ ruby -v
ruby 1.8.4 (2005-12-24) [i486-linux]
A couple of suggestions here:
1. Download the latest Ruby source -- 1.8.6 pre something.
2. Compile it for your architecture -- set CFLAGS = "-O2 -march=xxx"
where "xxx" is your architecture -- it's an AMD64 of some kind, right?
If you're running a 64-bit system, make sure you have a recent 64-bit kernel and GCC 4.1 -- older compilers suck wet dog fur on the 64 bit machines.
That should get you somewhere in the 10 - 30 percent speed improvement over a 486-compiled Ruby 1.8.4. It might be more, but just doing the 1.8.6 and the -O2 / march= stuff is pretty much mandatory.
$ uname -a
Linux airstream 2.6.17-11-generic #2 SMP Thu Feb 1 19:52:28 UTC 2007 i686 GNU/Linux
That should be OK -- most likely it's user time anyhow, not kernel time.
$ rails -v
Rails 1.2.1
I'm running Ubuntu 6.10
That should be fine too. The compiler is probably more important.
2. Is it possible for you to abstract a subset of your application as a benchmark, suitable for profiling?
Well, the "application" in this case is just a simple test for benchmarking
See my previous post for the Rails controller code (what little there is of it).
Yeah, I saw that.
3. Is it "simple enough" that it will "probably work" with the recent jRuby implementation of Rails?
I would hope so - it doesn't get much simpler.
I know Charles Oliver Nutter reads this list -- he's looking for tests for the latest jRuby/Rails.
···
On 3/7/07, Brian Adkins <lojicdotcomNOSPAM@gmail.com> wrote:
--
M. Edward (Ed) Borasky, FBG, AB, PTA, PGS, MS, MNLP, NST, ACMC(P)
http://borasky-research.blogspot.com/
If God had meant for carrots to be eaten cooked, He would have given rabbits fire.