On 2-jun-2006, at 23:44, Blair Zajac wrote:

o_xml generation by 22-30% depending upon the model.  This is done
by using the fact that we know the SQL column type and this allows us to skip the XML encoding if the type doesn't need encoding, such as booleans, floats, integers. I've attached a small script you can use to time the to_xml before
and after the patch.

3) Allows the :include option to be arbitrary deep, previously, only one level
of :include worked.

4) Binary columns are Base64 encoded and have an encoding="base64" attribute
added to it. It turns out that it is 80 times faster to do builder <<
Base64.encode(value) then builder.tag!(tag, value).

Outstanding issues are

1) The XML output is not at nice looking with the optimization of using

  builder.tag!(tag) do
    builder << value.to_s
  end

The new Builder "escape all" approach is a bit absurd, especially considering it's doing packs/unpacks to secure all Unicode values outside of ASCII. I tried to devise a patch to that but the stuff is buried too deep and Jim didn't seem keen on the idea.

--
Julian 'Julik' Tarkhanov
please send all personal mail to
me at julik.nl


_______________________________________________
Rails-core mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to