First, profile and find out which is the slow part (reading, tokenizing,
string-to-float conversion).
Second, conversion of string to float is ridiculously slow in some Java
library versions (Android uses Apache Java libraries). This came up in
the context of SVG parsing, IIRC, a few months ag
Does anyone know why this code is ridiculously slow and/or how to make
it faster?
float[] getVertices(String filename) {
try {
AssetManager am = this.getResources().getAssets();
InputStream is = am.open(filename);
2 matches
Mail list logo