Commit Graph

17910 Commits

Author SHA1 Message Date
adpi2 f82336d385
Merge pull request #7879 from adpi2/2.x-refactor-settings
[2.x] Refactor `Settings` and optimize indexing of aggregate keys
2024-11-13 17:08:09 +01:00
Adrien Piquerez 0ccf3325c8 Optimize indexing of aggregate keys
To build the index of all aggregate keys, we were computing the reverse
aggregation of each key, before indexing them.
And so each aggregate key was indexed many times, once for each
aggregated project. It was parallelized to reduce the latency.
In this PR, we compute the reverse aggregation of all the keys at once,
removing all duplication. We cannot parallelize this process anymore
but we don't need to, because it is a lot faster. It reduces the total
CPU time by 12%. The impact for the user depends on its number of cores.
2024-11-13 12:25:31 +01:00
Adrien Piquerez f4f185a1c1 Settings as a Map[ScopedKey[x], x]
Settings0 used to be a Map[Scope, AttributeMap], and is now a
Map[ScopedKey[x], x].
This is better because we don't need to decompose all ScopedKey[x]
into a Scope and an AttributeKey[x], for recomposing it back later,
which duplicates all ScopedKey[x]. It reduces the number of long-living
ScopedKey[x] by 8%, and the total number of instances by 1.4%.

Also it improves the performance of Settings0, which was responsible of
2.95% of the total CPU time, and is now responsible of 0.41%.
2024-11-13 12:25:31 +01:00
Adrien Piquerez 327d05e28f Remove unused Structure.taskToKey 2024-11-13 11:22:53 +01:00
Adrien Piquerez 6fbe032517 AttributeMap as an opaque type 2024-11-13 11:09:23 +01:00
Adrien Piquerez d54647a46c Use referential equality on Task 2024-11-13 10:55:29 +01:00
Eugene Yokota cfbc5c078a Merge branch 'develop' into wip/scalainstance 2024-11-13 00:31:53 -05:00
eugene yokota 661f1fa216
Merge pull request #7880 from adpi2/2.x-settings
[2.x] Reduce creation of `Setting` and `Initialize`
2024-11-12 22:41:42 -05:00
Adrien Piquerez e5cedbe56b Fuse Info in Task to reduce instances 2024-11-12 17:05:20 +01:00
Adrien Piquerez 6c226a2afd Reduce settings created by Defaults 2024-11-12 11:51:42 +01:00
Adrien Piquerez 8406fc86a8 Reduce settings created by ProjectMatrix 2024-11-12 11:51:42 +01:00
Adrien Piquerez 07ac8625e5 Reduce settings created by dependency-tree plugins 2024-11-12 11:51:31 +01:00
Adrien Piquerez c838094672 Optimize Previous 2024-11-12 10:56:31 +01:00
Eugene Yokota 258a831b03 Use ScalaInstance from update
**Problem**
doc task currently doesn't work.

**Solution**
For now turn off the optimized ScalaInstance
2024-11-12 03:44:52 -05:00
friendseeker c47d01738f
Remove jansi from WindowsInputStream 2024-11-07 22:08:00 -08:00
friendseeker f864e1c26d
Bye jansi 2024-11-07 22:07:07 -08:00
Friendseeker b621db683c Remove jansi from WindowsInputStream 2024-11-07 19:15:13 -08:00
Friendseeker 6dba5e4ec0 Bye jansi 2024-11-07 18:46:04 -08:00
eugene yokota f7160ba8d8
Merge pull request #7875 from eed3si9n/wip/slash-tests 2024-11-07 12:33:16 -05:00
eugene yokota 583939fc3c
Merge pull request #7874 from xuwei-k/ClassLoaderWarmup-scala-2-universe
[2.x] update ClassLoaderWarmup.scala
2024-11-06 03:47:09 -05:00
Eugene Yokota a34bb4756c Resurrect property-based testing for slash syntax 2024-11-06 03:43:39 -05:00
adpi2 aa5e252d22
Merge pull request #7866 from adpi2/2.x-reduce-heap
[2.x] Reduce number of long-living instances to speed up loading
2024-11-06 08:44:03 +01:00
xuwei-k 6e4c2ea275 update ClassLoaderWarmup.scala 2024-11-06 14:17:13 +09:00
eugene yokota fd37450ede
Merge pull request #7869 from Friendseeker/pass-use-consistent
[1.x] Pass `useConsistent` to `staticCachedStore`
2024-11-05 11:57:07 -05:00
eugene yokota 10dac84f04
Merge pull request #7871 from Friendseeker/prepare-sbt-1-10-6
[1.x] Prepare for sbt `1.10.6`
2024-11-05 11:56:39 -05:00
Adrien Piquerez 2f726cddf0 Add comments 2024-11-05 11:36:18 +01:00
Friendseeker 14d6dc5301
Prepare for sbt 1.10.6 2024-11-04 23:02:45 -08:00
Friendseeker 8ce6c1b47e Pass `useConsistent` to `staticCachedStore` 2024-11-04 13:21:08 -08:00
eugene yokota af22a5cf0f
Merge pull request #7864 from xuwei-k/delete-deprecated-since-0-x 2024-11-04 10:00:36 -05:00
Adrien Piquerez 9382fc99b7 Use caching in Project.transform 2024-11-04 10:43:42 +01:00
Adrien Piquerez 8b5eaa2cd5 Cache delegates during Load 2024-11-04 10:43:42 +01:00
Adrien Piquerez 5bbe871882 Cleaning Scope 2024-11-04 10:43:42 +01:00
Adrien Piquerez 2015c5d41a Add ThisBuildScope 2024-11-04 10:43:42 +01:00
Adrien Piquerez a28428f96c Pre-compute hashCode 2024-11-04 10:43:42 +01:00
Adrien Piquerez 4a429b2fe2 Add uniqueness cache on Scope 2024-11-04 10:43:28 +01:00
xuwei-k 07ae450e14 delete deprecated methods 2024-11-04 17:26:55 +09:00
Eugene Yokota 82d834a676 sbt 1.10.5 2024-11-03 18:10:43 -05:00
eugene yokota f4c2f35961
Merge pull request #7862 from eed3si9n/wip/cross-bug
Fix ++ with a command argument
2024-11-03 15:02:47 -05:00
Eugene Yokota f8280f14c8 Fix ++ with a command argument
**Problem**
sbt 1.10.0 added support for ++ command with external reference,
but broke ++ takes an aggregate command with slash.

**Solution**
This fixes the parser
2024-11-03 14:42:10 -05:00
eugene yokota 658d378513
Merge pull request #7859 from eed3si9n/wip/bump_coursier
[1.x] lm-coursier 2.1.5, Coursier 2.1.14
2024-11-03 12:45:43 -05:00
Eugene Yokota 126846f88c lm-coursier 2.1.5, Coursier 2.1.14 2024-11-03 12:25:03 -05:00
eugene yokota 135af2eb7c
Merge pull request #7858 from eed3si9n/wip/bump_sbtn
sbtn 1.10.5
2024-11-03 11:41:13 -05:00
Eugene Yokota 8ab2a23f11 sbtn 1.10.5 2024-11-03 03:33:25 -05:00
eugene yokota c5c094ee21
Merge pull request #7854 from Friendseeker/return-1-when-failed
[1.x] Return exit code `1` when client crashes & add smoke test for client
2024-11-03 01:07:08 -05:00
eugene yokota 8c8cc430a8
Merge pull request #7834 from eed3si9n/wip/bump_scala
[2.x] deps: Update to Scala 3.5.2
2024-11-02 16:41:54 -04:00
eugene yokota bcf5ded572
Merge pull request #7855 from Friendseeker/revert-static-link
[1.x] Reverts #7823 to restore Linux `sbtn`
2024-11-01 19:31:26 -04:00
friendseeker 801137de31
Revert "Merge pull request #7823 from Friendseeker/musl"
This reverts commit 0c00dbaf4b, reversing
changes made to 91ea2feb64.
2024-10-31 20:43:10 -07:00
friendseeker c58842da4e
Add smoke test 2024-10-31 20:36:15 -07:00
Friendseeker 0368243ed9 Return 1 when Client failed 2024-10-31 15:06:55 -07:00
Adrien Piquerez b63aa36601 Avoid wrapping KeyedInitialize in GetValue 2024-10-31 15:06:54 +01:00