473,387 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Why do compile times change?

I've noticed that when I'm fine tuning a class, I seem to get a quick
compile time. Then, if I have to compile another class with a change, it
takes much longer to compile. The next time I compile the 2nd class, it
compiles quickly.

Does the compiler do anything like track changes in files or use previous
compile output while compiling a file a 2nd or third time?

If not, why is there a difference in compile times? It's long enough I
would think it's not just a disk-buffering issue.

Hal
Jul 17 '05 #1
2 1545
Hal Vaughan wrote:
I've noticed that when I'm fine tuning a class, I seem to get a quick
compile time. Then, if I have to compile another class with a change, it
takes much longer to compile. The next time I compile the 2nd class, it
compiles quickly.

Does the compiler do anything like track changes in files or use previous
compile output while compiling a file a 2nd or third time?

If not, why is there a difference in compile times? It's long enough I
would think it's not just a disk-buffering issue.

Hal

You are very observant. :) Your OS (and probably your hard disk) are
doing the caching.
Jul 17 '05 #2
nos

"Jeff Schwab" <je******@comcast.net> wrote in message
news:yN********************@comcast.com...
Hal Vaughan wrote:
I've noticed that when I'm fine tuning a class, I seem to get a quick
compile time. Then, if I have to compile another class with a change, it takes much longer to compile. The next time I compile the 2nd class, it
compiles quickly.

Does the compiler do anything like track changes in files or use previous compile output while compiling a file a 2nd or third time?

If not, why is there a difference in compile times? It's long enough I
would think it's not just a disk-buffering issue.

Hal

You are very observant. :) Your OS (and probably your hard disk) are
doing the caching.


you can always check the time the class file was created
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: newbiecpp | last post by:
I have hard time to understand run-time environment. Let assume that I have a program that has a simple variable alpha. When this variable is statically allocated, the compiler can use the...
5
by: Michael | last post by:
i experience slower compile times with VC++ 2003 compared to VC+6.0. Anyone experiencing the same? Should that be expected? This ineed matters, when total compilation time is > 1h and you have to...
6
by: Tom | last post by:
I am developing my pages on my development machine and then copying to the production server. I am not pre-compiling, I am using the 'dynamic compile' feature. This is working fine except that...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.