Thread: Quick question about types...

  1. #31
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I dunno. I found and fixed some bugs, and so the use increased to 0.05. The biggest culprit is AppendInt and boost::lexical_cast.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  2. #32
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    so the use increased to 0.05
    So. If your program runs a hundred seconds, it spends five of those in this part of the code. If you optimize this code to take half as long, it will spend 2.5 seconds there, reducing the total runtime of the program to 97.5 seconds.

    Shouldn't you be looking elsewhere?
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #33
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Perhaps, but then again, perhaps not.
    The DLL is called by Excel's VBA and does all the work, and according to CodeAnalyst, takes 0.05, but Excel itself takes up a little more than that.
    That doesn't make much sense, since all VBA does is call the DLL once and let it do the grunt work.
    However, it is true that it calls back to VBA for some operations.

    And... it takes around 100 ms, which is far too slow for such a simple code.
    The DLL is the only place I can make optimizations.

    Meh, I seem to get different results everywhere. On a system wide basis, I think it got 0.11 time samples.
    In Excel, it got 0.35 timer samples...
    Last edited by Elysia; 12-07-2008 at 05:41 AM.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. very quick question.
    By Unregistered in forum C++ Programming
    Replies: 7
    Last Post: 07-24-2002, 03:48 AM
  2. quick question
    By Unregistered in forum C++ Programming
    Replies: 5
    Last Post: 07-22-2002, 04:44 AM
  3. Quick Question Regarding Pointers
    By charash in forum C++ Programming
    Replies: 4
    Last Post: 05-04-2002, 11:04 AM
  4. Quick Question Regarding Variable Types
    By Drek in forum C++ Programming
    Replies: 2
    Last Post: 01-24-2002, 01:16 PM
  5. Quick question: exit();
    By Cheeze-It in forum C Programming
    Replies: 6
    Last Post: 08-15-2001, 05:46 PM