I created a crude profiling tool to determine where to focus on improving the performance of OpenJPEG v2.
The profiling tool records the number of function calls and combined execution time for every function in the main source files (openjpeg.c, j2k.c, dwt.c, tcd.c, t1.c, mqc.c, and raw.c). Results from running the test harness on the 748 files from the "local_assets" folder were recorded in a CSV (Comma-Separated Value) format. The results were placed here: http://pastebin.com/7K9PCFcB The three columns in the file are: 1. Function name 2. Number of times the function was called 3. Combined execution time for the function. The order the rows appear in the file is not significant. (You can sort the rows in any order you like after importing the file into a spreadsheet.) Enabling the profiling tool definitely distorts the results. Overall execution time for the test increased from 21 seconds to 129 seconds. The crude profiling tool was able to identify where most of the decoding time is spent. Only a small number of routines are responsible for most of the execution time. Hopefully this information can lead to improvements in the performance of the OpenJPEG v2 library. Sheet Spotter -----Original Message----- From: Robin Cornelius [mailto:robin.cornel...@gmail.com] Sent: September 23, 2010 5:37 AM To: Sheet Spotter Cc: opensource-dev Subject: Re: [opensource-dev] Openjpeg/KDU the cold hard metrics On Thu, Sep 23, 2010 at 3:40 AM, Sheet Spotter <sheet.spot...@gmail.com> wrote: > There may be another option for obtaining a common set of J2C files for > comparison. > > Viewer 2 installs 784 JPEG-2000 files (*.j2c) in the "local_assets" folder > under the main install folder (e.g., "C:\Program Files\SecondLifeViewer2"). > > The "j2k_metric" test harness decoded all 784 files from the "local_assets" > folder without errors. The OpenJPEG 1.3.0 library was 3.7 times slower than > the KDU library that comes with Viewer 2.1.1.208043 (the current release > version). Hi (again) Sheet and everyone else, I've started another sheet with a fresh set of results on another system of mine, please feel free to add your own tests rows https://spreadsheets.google.com/ccc?key=0AiSrUP47_VxIdEZ4NmlSY281UXFac0ZZTkV jWGJtV1E&hl=en&authkey=CIGY9M4O If you want to compare to KDU you need to compare to KDU on your system don't compare to by KDU results or anyone elses, thats not a fair comparision. OJP 2.0 is not playing nice with the local_asset texture set needs some work. Robin _______________________________________________ Policies and (un)subscribe information available here: http://wiki.secondlife.com/wiki/OpenSource-Dev Please read the policies before posting to keep unmoderated posting privileges