Performance

There are 1 entries for the tag Performance

Performance testing

While rewriting Permissions class (with Allow/Deny/Inherit flags), i did some performance testing on different implementations: 3 sets of enum flags encapsulated in a class 3 sets of enum flags encapsulated in a struct Dictionary implementation (Dictionary<PermissionsItem, AllowType>) Here are test results: Performance (using simple timers): There's no performance difference between using struct instead of class Indexer: at least 5 time faster than using Dictionaries ToString: class implementation provided fastest results. Structs and dictionaries were about the same (1.5 times slower) Construction...