File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
src/StructuredLogger/Serialization/Binary Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,15 @@ public static Build Read(string filePath)
13
13
{
14
14
using ( var binaryLogReader = new BinaryLogReader ( filePath ) )
15
15
{
16
- return ( Build ) binaryLogReader . ReadNode ( ) ;
16
+ var build = ( Build ) binaryLogReader . ReadNode ( ) ;
17
+ var buildStringCache = build . StringTable ;
18
+
19
+ foreach ( var stringInstance in binaryLogReader . reader . StringTable )
20
+ {
21
+ buildStringCache . Intern ( stringInstance ) ;
22
+ }
23
+
24
+ return build ;
17
25
}
18
26
}
19
27
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ public TreeBinaryReader(string filePath)
32
32
}
33
33
}
34
34
35
+ public string [ ] StringTable => stringTable ;
36
+
35
37
public void ReadStringArray ( Queue < string > array )
36
38
{
37
39
array . Clear ( ) ;
You can’t perform that action at this time.
0 commit comments