DM linker vs GCC linker?
Andrea Fontana
advmail at katamail.com
Wed Jan 18 08:00:38 PST 2012
Not so much. Maybe inside check() of std.xml that check for xml
correctness and throw exception. It's the function that slow down the
entire app.
Il giorno mer, 18/01/2012 alle 16.26 +0100, Martin Nowak ha scritto:
> On Wed, 18 Jan 2012 16:00:05 +0100, Andrea Fontana <advmail at katamail.com>
> wrote:
>
> > This param:
> > --Xlinker --export-dynamic
> >
> > slows down the entire app (check() std.xml function) by 29x on test.
> >
> > Is it useful to add it on default config? Probably if you use external
> > dl, you should add it...
> >
> > andrea at ububox:~/src/xml-test$ dmd -c test.d && gcc test.o -o testgcc2
> > -m64 -Xlinker --export-dynamic -Xlinker --no-warn-search-mismatch
> > -lphobos2 -lpthread -lm -lrt
> > andrea at ububox:~/src/xml-test$ time ./testgcc2 cities.xml
> >
> > real 3m23.426s
> > user 3m22.901s
> > sys 0m0.276s
> >
> > andrea at ububox:~/src/xml-test$ dmd -c test.d && gcc test.o -o testgcc2
> > -m64 -Xlinker --no-warn-search-mismatch -lphobos2 -lpthread -lm -lrt
> > andrea at ububox:~/src/xml-test$ time ./testgcc2 cities.xml
> >
> > real 0m7.433s
> > user 0m7.316s
> > sys 0m0.112s
> >
> > Il giorno mer, 18/01/2012 alle 15.43 +0100, Trass3r ha scritto:
> >
> >> > dmd -c test.d && gcc test.o -lphobos2 -lrt -lpthread -o testgcc
> >> > vs
> >> > dmd -c test.d && dmd test.o -oftestd
> >>
> >> Well dmd test.d calls
> >> gcc test.o -o test -m64 -Xlinker -L/dmd/linux/lib64 -Xlinker
> >> -L/dmd/linux/lib32 -Xlinker --no-warn-search-mismatch -Xlinker
> >> --export-dynamic -lphobos2 -lpthread -lm -lrt
> >
> >
> Do you have a lot of exceptions being thrown in your code?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120118/c55ad70d/attachment-0001.html>
More information about the Digitalmars-d
mailing list