xbmc/xbmc — pull request #4345 by cg110 (2014-03-06 23:12:47+00:00)
Title: Speedup FileItem::IsSamePath

IsSamePath has been found to be expensive if PR 4301 is applied and
used. This is due to the high number of update events generated.

If the user is in the movie view, then the CFileItemList is scanned for every updated item, and the way the code detects it's a matching movie is to use IsSamePath.

By optimizing the IsSamePath code, the stall/overhead of processing the events (depending on collection size) is reduced.

See this post/thread for more details:
http://forum.xbmc.org/showthread.php?tid=184411&pid=1641764#pid1641764