strcmp profiling, v6 optimized routines

by no2chem 2. June 2009 11:28

I was taking a look at some coredll routines when I realized that many of these routines come from an outdated C library. I looked around for some updated routines, and I found faster routines in Linux and in RVCT (RealView compilation tool, now owned by ARM). The routines in Linux are actually pretty much the same as in CE 6.0, so I guess Microsoft never updated the CE 5.0 routines to newer optimized ones. RealView's strcmp used new v6 SIMD instructions  (namely, UQSUB8). I decided to test each routine out to see how well it performed. I tested 1 million iterations of strcmp() against 10 twenty-six character comparisons with a mix of identical, mismatch at end, and mismatch at beginning strings. The results are in the standard Excel spreadsheet below:

strcmpprofile

The ARMv6 instructions used by RVCT had the clear advantage here. While a 29% performance increase is impressive, this only applies to strcmp. However, updating the C library should have clear benefits as nearly all Windows Mobile applications use the library, and this would be a rapid way to increase performance across the board.

Another side thing to note is that strcmp isn’t actually used that much in Windows Mobile, the wide character version, wcscmp is usually used instead – maybe profiling that is next. However, it appears there are newer versions of that and many other functions as well. What we’ll need is an automated way to update the C libraries in coredll…

Tags:

Comments


United States constantin 
May 23. 2009 06:53 | Reply
constantin
Hey, do you plan to replace the entire MS R&D team? Good luck!


May 23. 2009 19:13 | Reply
cornelious2
seriously, i'm just waiting for him to post "Well I got bored one night and decided to create my version of windows mobile 7."


United States NuShrike 
August 23. 2009 17:38 | Reply
NuShrike
Need a way to hook coredll to switch out these routines, probably needs a new rom.


August 28. 2009 07:05 | Reply
wines
i have tried in on my windows 7, but it has some problems and it is always shutting down for every two hours.


October 23. 2009 01:01 | Reply
tiffany jewelry
good


February 20. 2011 12:19 | Reply
carlos castaneda
interview de carlos Castaneda sur la revue Resonancias en 1982 : entretien exclusif !


September 11. 2011 04:44 | Reply
columbia jackets
http://www.columbiaoutlet.net/
mutual difference between symmetric should not be more than 0.3 cm; mutual difference between horizon should be less than 0.4 cm.


People's Republic of China Michael Kors Outlet 
November 15. 2011 15:07 | Reply
Michael Kors Outlet
If you love handbags, you certainly know the name Michael Kors and mulberry bags. michael Kors handbags outlet and mulberry outlet can be found worldwide in shops, magazines, on TV, and on the arms of celebrities and fashionistas alike. They are considered some of the most polished, sleek, sophisticated, and luxurious bags. Michael Kors Outlet is a good place to look for Michael Kors Handbags because it has a good assortment of Michael Kors bags and other Michael Kors Shoes, mulberry bags, Micheal Kors Sunglasses Etc.. Just go to Our Michael Kors and mulberry factory shop and you will find many discount michael kors handbags or mulberry bags on sale!


December 14. 2011 10:27 | Reply
pandora jewelry
NBM';.,HJP[].;VB[NMLYI09HKNOLPGVB;NLOTL.;


December 20. 2011 23:37 | Reply
Marc Jacobs Outlet
Intriguing article. I know I’m a bit late in posting my comment even so the article ended up being to the point and just the knowledge I became searching for. I can’t say i always accept all you could mentioned nevertheless it was emphatically fascinating!

Add comment


(Will show your Gravatar icon)
Type If you can out:

  Country flag

biuquote
  • Comment
  • Preview
Loading



Disclaimer
Windows Mobile is a registered trademark of Microsoft Corporation in the United States and other countries.

Wei Enterprises is not affiliated in any way with Microsoft, HTC, Sprint, or any other wireless carrier/phone manufacturer otherwise mentioned on this site.

Copyright 2012 2009 Wei Enterprises