Archived

This topic is now archived and is closed to further replies.

How does this effect on speed

This topic is 5435 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

If I have include file like this:
  
#ifndef INCLUDEH
#define INCLUDEH

#define WIN32_LEAN_AND_MEAN

#include <windows.h>
#include <windowsx.h> 
#include <mmsystem.h>
#include <objbase.h>
#include <iostream.h>
#include <conio.h>
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include <math.h>
#include <io.h>
#include <fcntl.h>
#include <direct.h>
#include <wchar.h>
#include <vector>
#include "assert.h"
#include <fstream>

using namespace std;

#endif
  
And I include it, lets say to five cpp files and three h files how does that effect the compilers building speed and exe''s size? I''ve made my own tests, but it would be great if someone would explain how does the visual studio include...

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
The content in the header will only be included once, since your protecting the header with the #ifndef ... #endif statements

Share this post


Link to post
Share on other sites
About a few seconds your build will be completed, given that you have properly use the precompile header feature. Unless you are talking about using MSVC on a 486DX2/66

Share this post


Link to post
Share on other sites
quote:
Original post by DerekSaw
About a few seconds your build will be completed, given that you have properly use the precompile header feature. Unless you are talking about using MSVC on a 486DX2/66


I dunno what is 486DX2/66 whatevalator. Im using MVS 6.0 introductory version.

Anyway good news from u, and thanks!

Share this post


Link to post
Share on other sites
quote:
Original post by DerekSaw
About a few seconds your build will be completed, given that you have properly use the precompile header feature. Unless you are talking about using MSVC on a 486DX2/66


I dunno what is 486DX2/66 whatevalator. Im using MVS 6.0 introductory version.

Anyway good news from u all, and thanks!

Share this post


Link to post
Share on other sites