You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Code/Framework/AzCore/Tests/DOM
Nicholas Van Sickle cfd721bce1
A bit of Generic DOM tidying/fixup (#6914)
* A bit of Generic DOM tidying/fixup

- Refactor out a test fixture for all DOM tests / benchmarks
- Optimize `GetType` implementation to not use `AZStd::variant::visit` (benchmark included to A/B the implementations)
- Tag a few more mutating Value functions with "Mutable" to avoid astonishing copy-on-writes

Benchmark results for GetType implementation:
```
DomValueBenchmark/AzDomValueGetType_UsingVariantIndex              18.2 ns         18.0 ns     40727273 items_per_second=443.667M/s
DomValueBenchmark/AzDomValueGetType_UsingVariantVisit              32.2 ns         32.2 ns     21333333 items_per_second=248.242M/s
```

Signed-off-by: Nicholas Van Sickle <nvsickle@amazon.com>
4 years ago
..
DomFixtures.cpp A bit of Generic DOM tidying/fixup (#6914) 4 years ago
DomFixtures.h A bit of Generic DOM tidying/fixup (#6914) 4 years ago
DomJsonBenchmarks.cpp A bit of Generic DOM tidying/fixup (#6914) 4 years ago
DomJsonTests.cpp A bit of Generic DOM tidying/fixup (#6914) 4 years ago
DomValueBenchmarks.cpp A bit of Generic DOM tidying/fixup (#6914) 4 years ago
DomValueTests.cpp A bit of Generic DOM tidying/fixup (#6914) 4 years ago