[android-developers] remarkable slowness
I am seeing some remarkable slowness in code like this:
String html = "<html><head><style type=\"text/css\">tr:nth-child(odd)
{ background-color: rgba(0, 0, 0, 1.0); }"
+ " tr:nth-child(even) { background-color: rgba(0, 0, 0, 1.0); }
td { padding: 4px; font-size: 13px; } "
+ "body { color: white; font-family: \"Helvetica Neue\"; padding:
0; border: 0; margin: 0;"
+ "}" +
"</style></head><body bgcolor=0><table width=320 border=0>";
String dotline = "<tr><td colspan=4 align=center><font color=#aed136
size=3px><b>· · · · · ·
· · · · · · ·
· · · · · · ·
· · · · · · ·
· · · ·</td></tr>";
html += dotline;
html += "<tr><td/><td align=center><font color=#aed136><b>TEAMS</
td><td align=center><font color=#aed136><b>TIME</td></tr>\n";
The only thing I can think of is that I ought to use a StringBuffer to
build the HTML. Can a mistake like that really cause so much
slowness?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home