Questions tagged [build-time]

75 questions
20
votes
2 answers

Embedding build time into JAR Manifest using Ant

If I want to embed the current time in JAR manifest using ant is there an ant property I can use for "now" and which manifest attribute is the best to put this information? I currently have the following
Mike Q
  • 22,839
  • 20
  • 87
  • 129
20
votes
7 answers

Get build date and time in Swift

I'm using __DATE__ and __TIME__ in Objective-C to get the build date and time of my app. I can't find a way to get this information in Swift. Is it possible?
David Potter
  • 2,272
  • 2
  • 22
  • 35
15
votes
3 answers

Is there a way to display the build time of an entire solution in Visual Studio?

I know there is a way to display the build time of each project contained in a solution in visual studio. But what I'm looking for is the total time it took to build an entire solution, from the moment I clicked on build, to the moment it was…
levesque
  • 8,756
  • 10
  • 36
  • 44
13
votes
2 answers

How to rebuild go project efficiently while using Docker Compose?

This may be a stupid question, but I'm new to using Docker-compose. So far, I love it... but I'm having some long build times. I have a project with several dependencies, and I need to obviously rebuild the source every time I make a change. Right…
Ben Reed
  • 824
  • 1
  • 8
  • 26
13
votes
1 answer

How to organize build, server, client and shared JavaScript code with NodeJS

One big benefit I've always perceived with using NodeJS on the server is the potential for sharing bits of code between the server and client side (ex. input validation). Now that I'm actually developing using NodeJS one difficulty that I've found…
jpierson
  • 16,435
  • 14
  • 105
  • 149
13
votes
3 answers

How do I find out where the compiler spends its time?

How do I find out where the compiler spends its time? My build is too slow, I'm already using a RAMdisk for the VC++ temporary files and it doesn't make any difference. (I have an SSD, so I expected no difference.) Most single C++ files in this…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
12
votes
2 answers

How to reduce react app build time and understanding behaviour of webpack when bundling

Recently I am trying to optimize the performance of a web app(React). Assuming it is somewhat heavy as it consists of Code editors, Firebase, SQL, AWS SDK, etc. So I integrated react-loadable which will lazy load the components, After that, I got…
Dinesh Chitta
  • 670
  • 8
  • 23
11
votes
10 answers

GCC/Make Build Time Optimizations

We have project which uses gcc and make files. Project also contains of one big subproject (SDK) and a lot of relatively small subprojects which use that SDK and some shared framework. We use precompiled headers, but that helps only for…
inazaruk
  • 74,247
  • 24
  • 188
  • 156
10
votes
5 answers

Long compile times in Visual C++ 2010 with large static arrays

We have a C++ project in which there are several large static data tables (arrays of structs) generated by an preprocessing tool and compiled into our project. We've been using VC++ 2008 up to now, but are preparing to move to 2010, and these data…
Nathan Reed
  • 3,583
  • 1
  • 26
  • 33
10
votes
9 answers

C/C++: how to get integer unix timestamp of build time (not string)

I'm trying to achieve pretty trivial thing: I need to store integer 32-bit unix timestamp of the build time, but all the macro I've found (__DATE__, __TIME__, __TIMESTAMP__) expand to string, not integer. It seems, we just haven't it (which is…
Dmitry Frank
  • 10,417
  • 10
  • 64
  • 114
9
votes
2 answers

Is there a way to define a constant at build time in Go?

I have a program in Go that I want to compile in a bunch of binaries, each having a const value defined differently. More clearly, I have something like that: const wordLen = 6 type knowledge [wordLen]byte Here, wordLen is associated with the value…
Fabien
  • 12,486
  • 9
  • 44
  • 62
8
votes
1 answer

Does pre-compiling c++ header files slows down linking time?

I have 100 .h files in a externalFiles diretory. Around 10 .cpp files in my source includes these .h files. So I removed all #include externalFiles/.*h directives from my .cpp files and wrote them in a pch.h header that I include via Cmake's…
8
votes
10 answers

Does the number of projects in a Visual Studio 9 solution impact the solution load and build times?

I'm specifically interested in solution load times & build times - does fewer solutions mean better performance? Note that I'm not referring to the performance of the built application. Are load times and build times more efficient when working with…
ripper234
  • 222,824
  • 274
  • 634
  • 905
8
votes
5 answers

Importing header in objective c

In Objective-c when we using object of one class into another class by convention we should forward declare the class in .h file, i.e. @class classname;. And should import the header file in .m file, i.e. #import "header.h". But if we import the…
V-Xtreme
  • 7,230
  • 9
  • 39
  • 79
7
votes
3 answers

"variable tracking" is eating my compile time!

I have an auto-generated file which looks something like this... static void do_SomeFunc1(void* parameter) { // Do stuff. } // Continues on for another 4000 functions... void dispatch(int id, void* parameter) { switch(id) { …
Clark Gaebel
  • 17,280
  • 20
  • 66
  • 93
1
2 3 4 5