Rewrite #2

Merged
Booklordofthedings merged 22 commits from rewrite into dev 2024-08-26 13:32:44 +02:00
2 changed files with 20 additions and 21 deletions
Showing only changes of commit 176de85a21 - Show all commits

View file

@ -21,7 +21,6 @@ class BofaParser
HashSet<SHA256Hash> lowLevelObjects = new .(100);
defer delete lowLevelObjects;
if (pToParse == null || pResult == null)
{ //Cannot parse what doesnt exist
pErrors.Add(-1);

View file

@ -13,24 +13,23 @@ class Profiling
for (int i < 1000)
{
String content = """
l one line of text
b bool true
# saoidsaodsad
t text goes here
- Text addendum
n tone 12.5
#husdhfiudshfds
bn biggie 65645645645.6
i int 234345
l one line of text
b bool true
# saoidsaodsad
t text goes here
- Text addendum
n tone 12.5
#husdhfiudshfds
bn biggie 65645645645.6
i int 234345
bi bint 38432847329847329
o object
b content true
a array
b content true
b content true
bi bint 38432847329847329
o object
b content true
a array
b content true
b content true
""";
""";
List<Bofa> output = new .();
List<int64> errors = new .();
BofaParser.Parse(content, output, errors);
@ -65,6 +64,7 @@ class Profiling
a array{ii}
b content true
b content true
""");
}
List<Bofa> output = new .();
@ -76,13 +76,13 @@ class Profiling
}
}
[Test(Name = "Profiling: normal 1 * 150000")]
[Test(Name = "Profiling: normal 1 * 600000")]
public static void Profiling_Normal_Large()
{
String toParse = new .(10 * 150000);
for (int ii < 10000)
for (int ii < 40000)
{
toParse.Append(scope $"""
l one{ii} line of text