core: Pre-compile regex for substitute variables
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Fri, 20 Aug 2010 19:40:01 +0000 (22:40 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Fri, 20 Aug 2010 19:43:59 +0000 (22:43 +0300)
commitc98f8c5f95e787467c7d04db6c2cdcb727912efd
treedcdd629cf8d1d621711c763436e60c6662d194a3
parenta7d5b6cc6b8e7eabc297a01212bbdc31ec9197e1
core: Pre-compile regex for substitute variables

Apparently these string comparisons were taking a hell lot of time and the
reason was that string.replace() compiles regex each time it needs to
replace a string.
src/rygel/rygel-media-object.vala