Commit Graph
19 Commits
Author SHA1 Message Date
David Nadoba fda5b548fd use latest threshold file format 2023-08-23 17:21:09 +01:00
David Nadoba ab5462e294 Merge branch 'main' into dn-package-benchmark
# Conflicts:
#	docker/docker-compose.2204.59.yaml
2023-08-23 15:25:01 +01:00
David Nadoba 5a038c7a4a use automated threshold import 2023-08-23 15:23:27 +01:00
David Nadoba 311dcaa45b use new metricP90AbsoluteThresholds export format 2023-08-23 13:16:43 +01:00
David Nadoba 8005d751f1 install jemalloc 2023-08-22 15:29:13 +01:00
David Nadoba 92ffb4827b Add PolicyFailureReason to support lazy failure reason string interpolation (#126)
* Add `PolicyFailureReason` to support lazy failure reason string interpolation

* fix allocation test compilation

* update allocation counters
2023-08-21 20:01:19 +01:00
David Nadoba 45ad9935c7 Adopt apple/swift-format (#121)
* Adopt `apple/swift-format`

* install swift-format

* set `UseSynthesizedInitializer` to `false` until bug is fixed https://github.com/apple/swift-format/issues/591

* fix license header

* Fix license header
2023-08-16 11:17:34 +01:00
David Nadoba 619756c18f Add custom String representation to Certificate and related types (#116)
* `Custom[String|DebugString]Convertible` conformance

* save progress

* Apply new learned rules

debugDescription should be usable in structural display

* remove unused init

* remove unused properties

* Some fixups before review

* change description a bit around and respect RFC 2253

* add addition test

* fix license header and tests

* update allocation counters
2023-08-09 08:30:09 +01:00
David Nadoba 5f82c70d24 Make hashing a RDN.Attribute.Value.utf8String not allocate (#112)
* Make hashing a `RDN.Attribute.Value.utf8String` not allocate

* Precompute as much as possible

and fix bounds checking

* Update allocation counter
2023-07-20 09:59:29 +01:00
David Nadoba c13badf75a Add verifier allocation tests (#111)
* Add verifier allocation test

* update allocations
2023-07-17 17:04:40 +01:00
David Nadoba 1849f5274a Store String in RelativeDistinguishedName.Attribute instead of ASN1Any if possible (#104)
* Store `String` in `RelativeDistinguishedName.Attribute` instead of `ASN1Any` if possible

* Add Equatable and Hashable test

* fix typo

* remove trys

* Apply review feedback

* update allocation numbers
2023-07-06 14:10:54 +01:00
David Nadoba 290123d2e9 Do not allocate for RelativeDistinguishedNames with just a single attribute (#101)
* Setup allocation test framework

* Add allocation test that decodes all WebPKI Roots

* Replace _WebPKI with inline PEM strings

* Fix test

* implement `TinyArray`

* save progress with local ASN.1 dependency

465 allocs

* Implement lazySet in swift-certificates

* test on all WebPKI roots

* Revert "test on all WebPKI roots"

This reverts commit 4af11bb087.

* remove PerformanceTests

* Add tests for TinyArray

* revert changes

* delete unused test

* Implement TinyArray

* update cmake

* “Hide” enum and support storing arrays of exactly one element in `.arbitrary`

* Add allocation tests for TinyArray

* make arrays of different sizes

* Remove array optimisation

* run append in a loop

* Move _TinyArray into a separate module

and apply review feedback

* update cmake files

* remove unused Foundation import

* Allocations are lower by “1” on Linux

* import new module

* Add loop

* update allocation numbers for Linux

* replace with do/catch with try!

* Fix copyright

* update allocations

* Move lazySet to swift-asn1

* update allocation counters

* Fix `update-alloc-limits-to-last-completed-ci-build`

* Use concrete type
2023-07-05 11:47:57 +01:00
David Nadoba 405b3dd5ae Update to swift-asn1 0.10.0 (#107) 2023-07-04 03:28:15 -07:00
David Nadoba 364b26d86d Add allocation test that parses all WebPKI roots (#97)
* Setup allocation test framework

* Add allocation test that decodes all WebPKI Roots

* Replace _WebPKI with inline PEM strings

* Fix test

* revert changes

* delete unused test

* Add loop

* update allocation numbers for Linux

* replace with do/catch with try!
2023-06-21 15:43:02 +01:00
David Nadoba 41dff30819 Implement TinyArray (#98)
* Implement TinyArray

* update cmake

* “Hide” enum and support storing arrays of exactly one element in `.arbitrary`

* Add allocation tests for TinyArray

* make arrays of different sizes

* Remove array optimisation

* run append in a loop

* Move _TinyArray into a separate module

and apply review feedback

* update cmake files

* remove unused Foundation import

* Allocations are lower by “1” on Linux
2023-06-20 01:51:53 -07:00
David Nadoba 4a668badd3 Setup allocation test framework (#96) 2023-06-19 12:13:43 +02:00
Yim Lee 7144db521e Add docker-compose file for Swift 5.9 (#63) 2023-04-12 17:53:05 -07:00
David Nadoba 29ba02b3cc Add Swift 5.8 CI 2023-01-17 20:29:17 +01:00
David Nadoba 763ea6435a Add docker compose files and scripts for CI
and use correct license header name
2022-11-28 11:38:15 +01:00