Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Retain hierarchical structure in file system mirror (#5844)

The `FileSystemSnapshotter` now returns a root for each snapshotted file, possible containing all the children in hierarchy as the directory would no the file system.

This PR also contains some performance related changes:

- Stop interning path segments: That was only necessary when we stored the same path segments in many RelativePath objects. We don't do this any more, so interning should not be necessary and make things faster.

Actually, up-to-date assemble on largeMonolithicJavaProject (parallel false)

is about 40ms faster with this change (2.5 %).

- Don't use IndexedNormalizedFileSnapshots: It seems like there are no real performance gains by using IndexedNormalizedFileSnapshots.

    • -0
    • +47
    ./AbstractPhysicalDirectorySnapshot.java
    • -0
    • +37
    ./AbstractPhysicalSnapshot.java
    • -0
    • +162
    ./FilteredPhysicalSnapshot.java
    • -0
    • +33
    ./ImmutablePhysicalDirectorySnapshot.java
    • -0
    • +263
    ./MirrorUpdatingDirectoryWalker.java
    • -0
    • +59
    ./MutablePhysicalDirectorySnapshot.java
    • -0
    • +39
    ./MutablePhysicalSnapshot.java
    • -0
    • +70
    ./PhysicalFileSnapshot.java
    • -0
    • +40
    ./PhysicalMissingSnapshot.java
    • -0
    • +75
    ./PhysicalSnapshot.java
    • -0
    • +49
    ./PhysicalSnapshotVisitor.java
    • -0
    • +52
    ./RelativePathHolder.java
    • -0
    • +53
    ./RelativePathTracker.java
    • -0
    • +68
    ./logical/AbsolutePathFingerprintCompareStrategy.java
    • -0
    • +78
    ./logical/AbsolutePathFingerprintingStrategy.java
  1. … 117 more files in changeset.