Comments (6)
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.
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.
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.
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.
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.
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.
Related Issues (20)
- SVGAndroidRenderer.processMaskBitmaps is very slow HOT 1
- SVGParser is not thread-safe [with fix] (SVG parse error: Invalid colour keyword: white) HOT 2
- Feature request: replace text HOT 6
- FAQ promotes extremely bad backward-compatibility practice HOT 6
- Image references missing SVG support. HOT 3
- Canvas changed after renderToCanvas HOT 1
- Position of Rectf ignored when renderToCanvas HOT 1
- Support for hardware acceleration
- Android version support HOT 1
- Android version support HOT 1
- Pattern fills are rendered with visible grid HOT 4
- Provide copy constructor or allow rendering to multiple viewBox at once HOT 3
- migrate the repository HOT 3
- Move project to Github HOT 1
- NullPointerException in 1.2.2-beta1 when parsing SVG document HOT 4
- SVGImageView crashes on Android 5.0 and higher HOT 5
- Proguard breaks reflective CSS selectors HOT 1
- java.lang.ArrayIndexOutOfBoundsException: length=0; index=-2 in SVGAndroidRenderer.arcTo(SourceFile:2572) HOT 1
- Incorrect rendering of SVG image HOT 5
- Unable to execute dex: Multiple dex files define HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from androidsvg.