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
lumberyard-employee-dm 098005afbc
AZStd::basic_string improvements (#6438)
* AZStd::basic_string improvements

The AZStd::basic_string class has a better implementation of the Short
String Optimization, which increases the amount of characters that can
be stored in a `basic_string<char>` from 15 characters to 22
characters(not-including null-terminating characters). For a
`basic_string<wchar_t>` on Windows the amount of characters that can be
stored increases from 7 to 10. Using `basic_string<wchar_t>` on Unix
platforms SSO character amount from 3 to 4 characters.

An additional benefit is that the size of the AZStd::basic_string class
has been reduced from 40 bytes to 32 bytes when using the
AZStd::allocator.
When using a stateless allocator with no non static data members such as
AZStd::stateless_allocator, the size of the AZStd::basic_string is 24
bytes.

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>

* Corrected comments and updated type alias to usings for AZStd::basic_string

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>

* Added Benchmarks for the basic_string and basic_fixed_string class

The benchmarks currently measure the speed of the `assign` overloads.
A benchmark has also been added to compare the speed swapping two
`basic_string` instances by 3 memcpy vs 3 pointer swap operations

Speed up string operation when in the iterator overload cases of the
`assign`, `append`, `insert` and `replace` function.
The code was always performing the logic to copy over a string that is
overlapping, without actually checking if the string was overlapping in
the first place.

Added an `az_builtin_is_constant_evaluated` macro that allows use of the
C++20 `std::is_constant_evaluated` feature to determine if an operation
is being performed at compile time vs run time.

That macro is being used to speed up the char_trait operations at run
time, by using the faster standard library functions.
For example char_traits::move now uses "memmove" at runtime, instead of
a for loop.

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>

* Simplified string logic in AWSMetricsServiceApiTest.

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
4 years ago
..
AZStd AZStd::basic_string improvements (#6438) 4 years ago
AZTestShared
Asset Merging from development 4 years ago
Console Fixes debug console autocomplete issues (#4223) 5 years ago
DOM Merging from development 4 years ago
Debug Removes AssetMemoryAnalyzer that relies on the MemoryDrillerBus 4 years ago
EBus Removal and Replacement of the CryTimer (gEnv->pTimer) (#5409) 4 years ago
IO
Math AzCore Math tests produce errors that need to be disabled in debug (#6678) 4 years ago
Memory Memory/benchmarks (#5896) 4 years ago
Name
Platform Memory/benchmarks (#5896) 4 years ago
RTTI
Serialization/Json Death test relies on an exception from ocurring, that exception is an access violation, which could not happen (i.e. the memory could be valid for the process) (#6683) 4 years ago
Settings Added the --regset-file option for setreg file loading (#5768) 4 years ago
Streamer Preapre codebase for FileRequest compiletime improvements (#6192) 4 years ago
Time Remove time tests that relied on main-thread sleeps 4 years ago
AssetJsonSerializerTests.cpp {lyn7283} added test for assetHint Json Serialzier callback logic (#4586) 5 years ago
AssetManager.cpp
AssetSerializerTests.cpp
AzEnumTest.cpp
BehaviorContext.cpp
BehaviorContextFixture.h [LYN-8041] Enable relocation of the Project Game Release Layout (#5380) 4 years ago
Components.cpp Removes m_enableDrilling 4 years ago
DLL.cpp
DLLMainTest.cpp
Debug.cpp Replaces handlers of TraceMessageDrillerBus with handlers of TraceMessageBus 4 years ago
EBus.cpp Removes Driller from AzCore 4 years ago
EntityIdTests.cpp
EntityTests.cpp
EnumTests.cpp
EventTests.cpp
FileIOBaseTestTypes.h
FixedWidthIntegers.cpp
GenericStreamMock.h
GenericStreamTests.cpp
Geometry2DUtils.cpp
IPC.cpp
Interface.cpp
IntersectPoint.cpp
JSON.cpp
Jobs.cpp
Main.cpp
Memory.cpp Removes Driller from AzCore 4 years ago
Module.cpp
ModuleTestBus.h
OrderedEventBenchmarks.cpp
OrderedEventTests.cpp
Outcome.cpp
Patching.cpp
RemappableId.cpp
Rtti.cpp Removes Driller from AzCore 4 years ago
Script.cpp
ScriptMath.cpp AzCore Math tests produce errors that need to be disabled in debug (#6678) 4 years ago
ScriptProperty.cpp
Serialization.cpp Added SerializeContext Reflection of FixedMaxPath class (#4453) 4 years ago
SerializeContextFixture.h
Slice.cpp
State.cpp
StatisticalProfiler.cpp Replaces handlers of TraceMessageDrillerBus with handlers of TraceMessageBus 4 years ago
Statistics.cpp
StreamerTests.cpp Preapre codebase for FileRequest compiletime improvements (#6192) 4 years ago
StringFunc.cpp Remove old "Integ" functionality from tests (#4688) 5 years ago
SystemFile.cpp
TaskTests.cpp Part 2 of enabling Atom to use TaskGraph 4 years ago
TestCatalog.cpp Update AssetManager unit tests to not interact with the disk (#5815) 4 years ago
TestCatalog.h
TickBusTest.cpp
UUIDTests.cpp
XML.cpp
azcoretestdll_files.cmake
azcoretests_files.cmake AzCore Math tests produce errors that need to be disabled in debug (#6678) 4 years ago
aztestshared_files.cmake