Code Optimisations

infonote
Member Posts: 233
Hi,
A lot of C/AL performance guides state that FIND('-') should be replaced with FINDFIRST, FIND('+') with FINDLAST and
FIND('-') followed by a REPEAT should be replaced with FINDSET.
The question is:
Why isn't this applied in standard NAV object? Is there a reason for this?
I am sure there will be improvements in performance and a decrease in locking issues if new versions of NAV has the optimised code.
Thanks in advance
A lot of C/AL performance guides state that FIND('-') should be replaced with FINDFIRST, FIND('+') with FINDLAST and
FIND('-') followed by a REPEAT should be replaced with FINDSET.
The question is:
Why isn't this applied in standard NAV object? Is there a reason for this?
I am sure there will be improvements in performance and a decrease in locking issues if new versions of NAV has the optimised code.
Thanks in advance
Blog: http://www.kaizenlog.com
0
Comments
-
infonote wrote:Why isn't this applied in standard NAV object? Is there a reason for this?
And maybe there will be much efforts in the Development Team to "upgrade" the code into the new efficient one, while they have to released the product to the market, following the Marketing dead line.Regards,
Andwian0 -
And the blind replacement is not optimal in all cases. There are discussions when the FINDSET is better than FIND('-') and when not. This was changed when in NAV 2009 the default set size is 50 instead 500 etc. I think that the main reason is the golden rule "do not touch something what is working".0
-
And it would be too much work to change all in one go (everything should be rested). So Microsoft is only changing them where are reworking the code (or creating new code).Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions