Results 1 to 7 of 7

Thread: Visual Basic Optimization

  1. #1
    Cybernetic Interloper ub3r_n00b's Avatar
    Join Date
    Feb 2003
    Location
    Rivendel, East of The Ford of Bruinen
    Posts
    2,093

    Visual Basic Optimization

    Any clue on how to not make a loop in VB take up most of the CPU load? I dont actually think its my loops that are doing it - I think its writing to a file that is..

    anyways..

    any tips on optimizing vb code would be great, although I have read 10000 pages on how to do it already.

    Preet
    www.erudianart.com

  2. #2
    SG Enthusiast
    Join Date
    Jan 2001
    Location
    DC
    Posts
    4,726
    Disk writes are blocking. Are you buffering at all or opening the file and writing from within a loop?
    anything is possible - nothing is free


    Quote Originally Posted by Blisster
    It *would* be brokeback bay if I in fact went and hung out with Skye and co (did I mention he is teh hotness?)

  3. #3
    Cybernetic Interloper ub3r_n00b's Avatar
    Join Date
    Feb 2003
    Location
    Rivendel, East of The Ford of Bruinen
    Posts
    2,093
    writing to a file within a loop yes.. uses up a ****load of CPU
    www.erudianart.com

  4. #4
    SG Enthusiast
    Join Date
    Jan 2001
    Location
    DC
    Posts
    4,726
    The sad part is it isn't 'using' your CPU...rather waiting to access it.

    What type of hardware are you working with and how much data are you writing? How many times are you opening a new file handle, what is the frequency of disk writes from buffer?
    anything is possible - nothing is free


    Quote Originally Posted by Blisster
    It *would* be brokeback bay if I in fact went and hung out with Skye and co (did I mention he is teh hotness?)

  5. #5
    Cybernetic Interloper ub3r_n00b's Avatar
    Join Date
    Feb 2003
    Location
    Rivendel, East of The Ford of Bruinen
    Posts
    2,093
    sever with dual xeons (is what it will be running on) I am basically writing emails to .eml files from a POP3 client and then updating them to Outlook

    Preet
    www.erudianart.com

  6. #6
    SG Enthusiast
    Join Date
    Jan 2001
    Location
    DC
    Posts
    4,726
    Dual CPUs won't be too much help here - unless you are running other services on that box as well - as you can't write to two parts of a disk at once. Disk speed will be king as you aren't doing anything that requires significant math.

    What type of hardware are you using now? How fast are the disks and what other services are you running? How is your memory usage looking while you are running your script?

    I'm still a little confused about what you are trying to do (or maybe why). Are you trying to convert emails from a different client to outlook format or trying to send a batch of emails?
    anything is possible - nothing is free


    Quote Originally Posted by Blisster
    It *would* be brokeback bay if I in fact went and hung out with Skye and co (did I mention he is teh hotness?)

  7. #7
    Cybernetic Interloper ub3r_n00b's Avatar
    Join Date
    Feb 2003
    Location
    Rivendel, East of The Ford of Bruinen
    Posts
    2,093
    well actually the app doesnt take up much resources, and cpu usage is low on the server so I think we are good to go...

    Preet
    www.erudianart.com

Similar Threads

  1. Visual Basic Tutorials?
    By mmione in forum Programming Forum
    Replies: 5
    Last Post: 05-12-05, 05:47 PM
  2. mergin visual basic commands and publisher 2k3
    By zooner in forum Software Forum
    Replies: 1
    Last Post: 06-10-04, 09:37 PM
  3. Visual Basic Parallel/Serial port question
    By corkymccorkle in forum Programming Forum
    Replies: 3
    Last Post: 05-29-02, 11:51 PM
  4. visual basic: dates and times
    By athalonxpkid in forum General Discussion Board
    Replies: 1
    Last Post: 03-04-02, 09:38 PM
  5. Visual Basic, TCI/IP and Music
    By Paft in forum Programming Forum
    Replies: 1
    Last Post: 07-02-01, 03:41 AM

Bookmarks

Posting Permissions

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