commit | e8e0a39464012a05fbfbde707c36255a7a99c1be | [log] [tgz] |
---|---|---|
author | David Benjamin <davidben@google.com> | Wed Aug 11 16:41:41 2021 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Wed Aug 11 16:41:41 2021 +0000 |
tree | 2f1793c159b8e9e33af0f9cf25aa3188925860d5 | |
parent | cc84bb3e289e6e84be75843ab5eef3bc7e744f9e [diff] |
Estimate the overhead of an X509 object without sizeof To unblock optimizations in hopes of reducing the overhead, we're planning to make X509 opaque in BoringSSL. This aligns with upstream OpenSSL, which has made most of these structs opaque. Instead, use an estimate. The sizeof-based estimate was undercounting the overhead anyway because there are many structures underneath X509, some of which are already opaque. I just rounded sizeof(X509) + sizeof(X509_CINF) up. (Even this is likely still undercounting it because X509 objects are very malloc-heavy and duplicate large chunks of the certificate. They're not a very efficient representation and can't be made efficient without first hiding the structs. In Chrome, we stopped using them altogether and just retain the byte string, parsing as needed.) TEST=ci Change-Id: Icdc729ceba7eadf002bec5e080fc3e0adf7c4b56 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/209920 Reviewed-by: Alexander Aprelev <aam@google.com> Commit-Queue: Alexander Aprelev <aam@google.com> Auto-Submit: David Benjamin <davidben@google.com>
Dart is:
Optimized for UI: Develop with a programming language specialized around the needs of user interface creation.
Productive: Make changes iteratively: use hot reload to see the result instantly in your running app.
Fast on all platforms: Compile to ARM & x64 machine code for mobile, desktop, and backend. Or compile to JavaScript for the web.
Dart's flexible compiler technology lets you run Dart code in different ways, depending on your target platform and goals:
Dart Native: For programs targeting devices (mobile, desktop, server, and more), Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an AOT (ahead-of-time) compiler for producing machine code.
Dart Web: For programs targeting the web, Dart Web includes both a development time compiler (dartdevc) and a production time compiler (dart2js).
Dart is free and open source.
See LICENSE and PATENT_GRANT.
Visit dart.dev to learn more about the language, tools, and to find codelabs.
Browse pub.dev for more packages and libraries contributed by the community and the Dart team.
Our API reference documentation is published at api.dart.dev, based on the stable release. (We also publish docs from our beta and dev channels, as well as from the primary development branch).
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.