> Inline type casting tailored to each attribute's column type is > faster than does-it-all read_attribute. It's for performance alone:
Jeremy, This is a very good point. However, I am concerned about the origin of this whole discussion. Is it desirable that if the behavior of read_attribute were to change - the new behavior would trigger on the first access to a reader method, but successive calls to the reader would ignore the new behavior entirely. That seems to me it could be the source of immense pain for the sake of performance (perhaps just my pain, but I now know how to address the issue) Thoughts? -- Jeff Hall _______________________________________________ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core