1
Vote

Perf : Video and Image wiki macro is taking more time to parse the contents

description

Version - WikiPlex 2.0

Steps
  1. Create a Video and Image wiki macro and verify the time it take to render the data.
       IList<string> list = new List<string>();
        list.Add("[image:http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=1code&DownloadId=128165]");
        list.Add("Tour of Rawr <{ {video:url=http://www.youtube.com/watch?v=OjRM5SUoOoQ,type=youtube} }< ");
        var engine = new WikiPlex.WikiEngine();
        foreach (var str in list)
        {
            Stopwatch sw = Stopwatch.StartNew();
            string output = engine.Render(str);
            sw.Stop();               
            Console.WriteLine(sw.Elapsed.TotalMilliseconds);               
        }
  2. You will see Video markup and Image markup takes more time to compare with other macro.

comments