Results 1 to 40 of 43

Thread: more optimising

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    85

    Exclamation more optimising

    im still trying to optimise my app.(it is deeling with bignumbers) I found something that would make a big speed difference but im having trouble understanding the code enough to impliment it. It doesn't help that the person that wrote it didn't comment anything.
    I want to move the first call texttobignumber out of this sub and call it only when teststring1 changes. however it seems other subs are using the same variables and arrays. I know this meens adding another array but everytime I start trying to follow this code I get lost any help would be greatly appretiated.
    VB Code:
    1. Public Sub divide_nums()
    2. Dim a(MaxLength) As Long
    3. Dim b(MaxLength) As Long
    4. Dim c(MaxLength) As Long
    5. Dim d(MaxLength) As Long
    6. Dim LengthA As Long
    7. Dim LengthB As Long
    8. Dim LengthC As Long
    9. Dim LengthD As Long
    10. Dim dumbnum As String
    11.  
    12. Call TextToBigNumber(teststring1, a, LengthA) ' this one needs moved out of this sub
    13.  
    14. Call TextToBigNumber(numtotest, b, LengthB)
    15. Call DivBSigned(a, LengthA, b, LengthB, c, LengthC, d, LengthD)
    16. dumbnum = BigNumberToText(c, LengthC)
    17. remainder = BigNumberToText(d, LengthD)
    18. End Sub
    the rest of the affected code is attached including the module with the above Sub.
    thank you
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width