[Home] [By Thread] [By Date] [Recent Entries]

  • From: Richard Salz <rsalz@u...>
  • To: "Pete Cordell" <petexmldev@c...>
  • Date: Thu, 17 Feb 2011 11:56:45 -0500

> My feeling is that when you work through the implementation of handling 
type 
> tagged values you'll still end up with a fairly generic kind of object 
and 
> you're not going to get floats mapped to language native float types 
etc. 
> For example, all the classes would likely have some common base class 
> interface and be created by some factory or other.

Eww, yuck. :)

More technically, that is not the best way to go if you care about 
performance or security.

        Performance -- Why should I bother to intern a string if it's an 
int?  Cf, http://www2006.org/programme/item.php?id=5011

        Security -- why should I let a bad-guy send me millions of bytes 
just to parse the number 23, unless I like DoS attacks?  (Of course, a 
really secure solution would have the schema beforehand, but that might 
not always be possible.)

        /r$

--
STSM, WebSphere Appliance Architect
https://www.ibm.com/developerworks/mydeveloperworks/blogs/soma/


  • Follow-Ups:

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member