Git Product home page Git Product logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
I did some experiments for the current unreleased version. I tried a pull 
parser and it didn't really make any real difference to parse times.

I did however optimise a few things and the parser is a lot faster now (>2X).  
The biggest improvement came from implementing a custom float parser.  The new 
number parser is around 6X faster than the standard one in Java/Android.

I may do some testing with kXML and see whether it does offer a significant 
improvement. 

What speed difference are you seeing between your version of svg-android and 
AndroidSVG parsing-wise?

Original comment by [email protected] on 11 Jun 2014 at 11:49

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
Thanks for the feedback.

If you want to see better what I mean, you can try Cruiser (an Android map 
application using mapsforge).
http://wiki.openstreetmap.org/wiki/Cruiser
You'll need also a vector map from
http://download.mapsforge.org/
Zoom in at street level inside a city and you'll see the rendered svg POI.

If I compare side by side our map viewer using svg-android-2 (kXML) and 
androidsvg,
I see that there is notable delay at svg rendering with androidsvg, specially 
at areas where there are plenty of svg symbols.
We experienced that kind of delay when we tried the svg-android-2 with its 
original SAX parser.

If you want I can try any beta version of androidsvg to test its performance.

Original comment by [email protected] on 12 Jun 2014 at 7:19

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
Thanks for the offer to do some beta testing.

I've uploaded a beta version of 1.2.2 to the downloads page.  It should also be 
available on the maven central repository soon.

androidsvg-1.2.2-beta-1.jar

Obviously AndroidSVG will probably never be as fast as svg-android for many 
reasons.  In order to properly render all files, there are things it has to do 
that make it slower.

Original comment by [email protected] on 16 Jun 2014 at 7:45

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
I try androidsvg-1.2.2-beta-1 as svg parser for mapsforge in Cruiser Beta:
https://play.google.com/store/apps/details?id=gr.talent.cruiser.beta

Have you included at your latest beta version any performance improvements?

Original comment by [email protected] on 19 Jun 2014 at 10:26

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
Yes. 1.2.2 has a bunch of parsing speed improvements.  So you didn't notice any 
difference?

Original comment by [email protected] on 19 Jun 2014 at 12:48

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
Yes, I think there is performance improvement (I asked to be sure).

Is in your plans to try also the kXML?

Thanks for publishing the beta version also on Maven.

Original comment by [email protected] on 19 Jun 2014 at 4:55

from androidsvg.

BigBadaboom avatar BigBadaboom commented on May 30, 2024

As part of the fix for issue #122, the parser now uses XmlPullParser by default instead of SAXParser.
There does seem to be a good speed improvement. For example one large file I tested was parsed 40% more quickly.

Hence, I'm going to close this bug as fixed for now.

from androidsvg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.