| | |
[ask] how to make it faster???
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
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
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net .net2005 30minutes 2005 2008 access account application arithmetic array arrays basic binary bing button buttons c# center check code combobox component connectionstring convert crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dropdownlist error excel file-dialog folder ftp google hardcopy image images inline insert listview login mobile ms navigate net networking opacity output passingparameters peertopeervideostreaming picturebox picturebox1 plugin port print printing problem problemwithinstallation project reports" save savedialog searchbox serial server soap sorting sql string table tcp text textbox timer toolbox trim update updown usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio web wpf





