Stopped choqok from resolving each tinyURL 3 times
authorTejas Dinkar <tejasdinkar@gmail.com>
Tue, 14 Jul 2009 20:25:14 +0000 (20:25 +0000)
committerTejas Dinkar <tejasdinkar@gmail.com>
Tue, 14 Jul 2009 20:25:14 +0000 (20:25 +0000)
commit48ba159fdf3f78be0ef7b7f81ff87e675d99a3ad
tree140f9f1a1e1ec86d90f9a57a637e47658251846e
parent00af2afa3d88fd8ebb5232d1b188749892fabea4
Stopped choqok from resolving each tinyURL 3 times
The line status.replace(mUrlRegExp,"<a href='\\1' title='\\1'>\\1</a>");
must be between the blocks that identify the URLs, and that discover the
redirect.
If this line is before, it discovers each URL 3 times (from the href,
title and display). This is a significant performance penalty
If this line is after both blocks, then it results in a (potential) race
condition.
src/statuswidget.cpp