Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

MathRecompiler performance enhancer

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 10-15-2009, 08:01 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by klaus View Post
The call of the DoMathsSub routine from DoMaths_AsDouble instead of calculating directly in this routine makes the differenche.
Yes, because the called Sub doesn't do much work so the call overhead is high. Hence the emphasis on the help in doing a significant amount of work in a called Sub or or inlining what would otherwise be small Subs.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #12 (permalink)  
Old 10-18-2009, 10:10 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Version 1.4 now copes with "=" and "<>" in conditional expressions, previously they threw a cast exception. The other comparison operators worked fine as they always assume numeric quantities but as "=" and "<>" can also be used on strings the optimising compiler treats them differently and I hadn't taken this into account .
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #13 (permalink)  
Old 10-18-2009, 06:00 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

I didn't deliberately design it to do so but it seems that version 1.4 works with Single, Int32 and Int64 arrays as well as Doubles which could be useful to save memory with large data sets.

Post the code here if you try it and it doesn't work and I'll take a look.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Navigation Performance Saj Questions (Windows Mobile) 15 07-18-2009 11:08 AM
Performance vs Memory RandomCoder Questions (Windows Mobile) 4 02-10-2008 04:03 PM
Performance on Bitmap? Roadrunner Questions (Windows Mobile) 9 12-09-2007 02:19 PM


All times are GMT. The time now is 07:01 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0