Comments (7)
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.
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)
- SVG drawable alpha value is not supporated HOT 1
- Make fallback color configurable HOT 3
- Svg Color Filter
- Fhhj
- Marcoscortes1
- Look for `currentColor` in case-insensitive manner
- Handle all CSS system colors HOT 1
- This svg file, there is a problem HOT 3
- I want to need content width and height without set view box so how can i resolve this issue ?
- I want to get only drawn content of svg as picture HOT 3
- below svg is getting cut in imageview, I want to get whole svg as picture how to do it HOT 5
- SVG Rendering Issue in androidsvg Library HOT 3
- Support animated gif and webp for <image> HOT 3
- Android 14 emulator: App crashes with java.lang.SecurityException: "Writable dex file is not allowed. " HOT 2
- Release 1.5
- colrv1 asset with multi-layers HOT 2
- Text is misplaced HOT 2
- 图片放到之后有黑色边框 HOT 2
- SVG href or xlink:href not working
- Text is hidden after scaled a element
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.