Questions tagged [build-time]

75 questions
1
vote
4 answers

How can I optimize this code?

My current project has us using TreeSet and TreeMap in Java, with an input array of 10514 Song elements read in from a text file. Each Song contains a Artist, Title and Lyric fields. The aim of this project is to conduct fast searches on the…
Jason
  • 11,263
  • 21
  • 87
  • 181
1
vote
2 answers

Forward typedef declarations, effect on build times, and naming conventions

I am curious about the impact my typedef approach has on my builds. Please consider the following example. #include "SomeClass.h" class Foo { typedef SomeClass SomeOtherName; SomeOtherName* storedPointer; void…
FP.
  • 366
  • 2
  • 12
1
vote
1 answer

Is it possible to split my android project to multiple projects for reducing compile time?

I have created a big android application that takes a long time for building. Some namespaces are changed rarely. Is it possible to create these name spaces in separate projects and import them in main project as a library? If yes how can I do…
Bob
  • 22,810
  • 38
  • 143
  • 225
1
vote
3 answers

will C# compiler for big codebase run dramatically faster on machine with huge RAM?

I have seen some real slow build times in a big legacy codebase without proper assembly decomposition, running on a 2G RAM machine. So, if I wanted to speed it up without code overhaul, would a 16G (or some other such huge number) RAM machine be…
EndangeringSpecies
  • 1,564
  • 1
  • 17
  • 39
0
votes
1 answer

Log project build times from VC++9 (Visual Studio 2008) from CC.Net

As part of my war on long build times (our C++ solution takes about an hour to build using Incredibuild!) I'm trying to find the build time hotspots. I've enabled Build Times logging (Tools -> Options -> Projects and Solutions -> VC++ Project…
philsquared
  • 22,403
  • 12
  • 69
  • 98
0
votes
1 answer

How to decrease the building time for Visual Studio

I am working on solution with 40+ projects interlinked together. At the moment, the build time is ~30min, and I really want to shorten it. What would be a good place to start shortening the build time? Some background: I don't know much about the…
exklamationmark
  • 325
  • 2
  • 11
0
votes
1 answer

Build slow down on VS.NET 2010 after installing VS.NET 2011 (Developer Preview Edition)

I installed Visual Studio 11 (developer preview edition) last week, since then, the build speed of the previous version (VS 10). - using diagnostic build the "GenerateResource" task takes much longer than other processes (about a minute!) - checked…
Afshin
  • 1,222
  • 11
  • 29
0
votes
0 answers

Why is it so slow to start instrumented test in Android Studio?

I have the latest version on Android studio (Giraffe) And I have built a very small app from the project wizard (the "empty activity" template) When I run the app several times consecutively, it starts in less than a second. If I change the code,…
0
votes
0 answers

Is there any reason to prefer asserting type traits over concepts?

As far as I can tell the code below asserts the same thing in two different ways: #include template concept nothrow_assignable = requires(T a, U b) { requires noexcept(a = b); }; template void foo() { …
Joseph Garvin
  • 20,727
  • 18
  • 94
  • 165
0
votes
1 answer

How can one reduce the number of attempts of g++ to find some particular include file?

I was using strace -eopen -f g++ ... in order to see what is happening. I found the number of calls to open() were 13244 with 10880 failing. So I looked at the output and looked at one particular file from boost (noncopyable.hpp) and found that the…
Frank Puck
  • 467
  • 1
  • 11
0
votes
1 answer

Disable beans with build time property in my quarkus extension

I am writing a quarkus extension. This extension includes a capability, which should be disableable by build property. I accordingly annotated the beans of this optional capability with @IfBuildProperty(name = "myProperty", stringValue = "true") In…
Herr Derb
  • 4,977
  • 5
  • 34
  • 62
0
votes
0 answers

Build time inside the RHEL 7 VM (VirtualBox)

ALL, I have a software that I'm trying to build on both host machine and VirtualBox client. Both machine use the same RHEL7 OS and exctly the same set of Makefile's. However the build time on the host is much faster than on VM. Is there a way to…
Igor
  • 5,620
  • 11
  • 51
  • 103
0
votes
0 answers

Swift type checking takes 110ms on simple Int() cast

My Xcode project takes ages to build so I have looked at expression that takes a long time. The line let timeStamp = Int(Date().timeIntervalSince1970) takes 110ms. I have tried let timeStamp : Int = Int(Date().timeIntervalSince1970) which doesn't…
Trangler
  • 73
  • 5
0
votes
1 answer

Rules for type check in Swift builds?

I’ve wanted to speed up my build times, so one of the steps was using Other Swift Flags and -Xfrontend -warn-long-function-bodies=100 -Xfrontend -warn-long-expression-type-checking=100 But I’m not really sure how type checks work. For example,…
elektricni
  • 319
  • 1
  • 5
  • 12
0
votes
1 answer

Parallel build execution in gradle

Current scenario: current build.gradle is taking 2 hours to complete all tasks. What i want to achieve: i want to reduce the build time. What i have done till now: i have created multiple projects in below hierarchy: :root project settings.gradle …