| | |
[ask] how to make it faster???
Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Apr 2008
Posts: 8
Reputation:
Solved Threads: 0
dear guys...
i have a code but it runs so slowly
i would it to make it fast...can u help me??
what should i do???
i have a code but it runs so slowly
i would it to make it fast...can u help me??
what should i do???
VB.NET Syntax (Toggle Plain Text)
Var2 = 0.1 For y = 0 To jlhPro - 1 Do Var1 = Var2 For z = 0 To thn - 1 kata &= data(y, z) & "*" & Var1 & "^" & z + 1 & vbCrLf Res1 += data(y, z) * Var1 ^ (z + 1) kata &= "data = " & data(y, z) & vbCrLf kata &= "res1 = " & Res1 & vbCrLf Next Res1 -= invest kata &= "res1 = " & Res1 & vbCrLf & vbCrLf & vbCrLf kata &= "=========================================" & vbCrLf For z = thn To 1 Step -1 Res2 += z * data(y, z - 1) * Var1 ^ (z - 1) & vbCrLf kata &= z & "*" & data(y, z - 1) & "*" & Var1 & "^" & (z - 1) & vbCrLf kata &= "res2 = " & Res2 & vbCrLf Next Var2 = Var1 - Res1 / Res2 Loop Until Math.Abs(Var1 - Var2) < 0.00000001 ir = (1 - Var2) / Var2 kata &= "irr = " & ir * 100 & "% " & vbCrLf Next
•
•
Join Date: Jun 2007
Posts: 22
Reputation:
Solved Threads: 5
I did not analyze the algorithm. Concerning the types that are used:
If a program needs to perform many append operations on a string, using a stringbuilder object may be faster than using a string object.
See
http://msdn.microsoft.com/en-us/libr...er(VS.80).aspx
If a program needs to perform many append operations on a string, using a stringbuilder object may be faster than using a string object.
See
http://msdn.microsoft.com/en-us/libr...er(VS.80).aspx
![]() |
Similar Threads
- How to make it faster ? c# and dataBase (C#)
- Interests Anyone? (Geeks' Lounge)
- Help making this faster (Visual Basic 4 / 5 / 6)
- Faster Repaint (Java)
- New Hard Drive (Storage)
- Overlocking - I Disagree (Motherboards, CPUs and RAM)
Other Threads in the VB.NET Forum
- Previous Thread: VC++ application Convert to VB.NET
- Next Thread: Booking system
Views: 446 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
"crystal .net .net2005 2008 access add application array assignment basic box button buttons center class click code combo convert cpu data database datagrid datagridview design designer dissertation dissertations dissertationthesis dosconsolevb.net editvb.net employees error excel exists firewall function image images isnumericfuntioncall listview login map math memory mobile module msaccess mssqlbackend mysql navigate net opacity page pan picturebox port print printing printpreview problem record refresh regex reports" reuse right-to-left save savedialog search serial socket sorting sql sqldatbase storedprocedure string structures studio temp textbox timer txttoxmlconverter upload useraccounts usercontol usercontrol vb vb.net vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet vista visual visualbasic visualbasic.net visualstudio2008 web wpf xml





