On Tuesday, September 06, 2011 22:28:05 Timon Gehr wrote: > On 09/06/2011 09:36 PM, notna wrote: > > Sorry upfront, I didn't read this hole thread, so maybe I'm missing or > > mixing something... > > > > How about a D binding for http://www.xmlsoft.org/ ? > > > > In other words, taking the "curl or sqlite3 path", something like > > /etc/c/xml2 > > That is about 4 times slower than the Tango XML parser:
Yeah. Thanks to array slicing, parsing is actually one of the areas that D libraries should be able to generally beat C/C++ libraries in terms of speed. That being said, creating bindings and wrappers for existing libraries is a great way to increase Phobos' functionality without reiventing the wheel in many cases. But there are definitely cases, where redoing something in D would actually be much better. It all depends on what you're trying to do and what libraries already exist in C or C++. - Jonathan M Davis