Quick question about types...

This is a discussion on Quick question about types... within the C++ Programming forums, part of the General Programming Boards category; I dunno. I found and fixed some bugs, and so the use increased to 0.05. The biggest culprit is AppendInt ...

  1. #31
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,022
    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,893
    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
    Posts
    23,022
    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.

Page 3 of 3 FirstFirst 123
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, 04:48 AM
  2. quick question
    By Unregistered in forum C++ Programming
    Replies: 5
    Last Post: 07-22-2002, 05:44 AM
  3. Quick Question Regarding Pointers
    By charash in forum C++ Programming
    Replies: 4
    Last Post: 05-04-2002, 12:04 PM
  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, 06:46 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21