Friday, 16 August 2013

Very slow operations in Android emulator

Very slow operations in Android emulator

My code gets a RSS feed and parses it. Code works fine, but is very slow
in some functions (see time in code). Any suggestions?
URLConnection connection = feedUrl_.openConnection();
InputStream inputStream = connection.getInputStream(); // 15 sec
Reader reader = new InputStreamReader(inputStream, "UTF-8");
InputSource inputSource = new InputSource(reader);
doc = builder.parse(inputSource); // 60 sec

No comments:

Post a Comment