diff options
author | Adam Langley <agl@chromium.org> | 2015-02-06 22:52:16 +0300 |
---|---|---|
committer | Adam Langley <agl@chromium.org> | 2015-02-10 04:35:31 +0300 |
commit | 29b186736c1e95e2005b13674a6930b282b55e21 (patch) | |
tree | 02ddb5e6055c305410dcea5f9730e7e294d18702 /crypto/rsa/CMakeLists.txt | |
parent | 65226257c1c49eac4a739b9d57409b52dfbb5d45 (diff) |
Precompute sorted array for error strings.
Previously, error strings were kept in arrays for each subdirectory and
err.c would iterate over them all and insert them at init time to a hash
table.
This means that, even if you have a shared library and lots of processes
using that, each process has ~30KB of private memory from building that
hash table.
This this change, all the error strings are built into a sorted list and
are thus static data. This means that processes can share the error
information and it actually saves binary space because of all the
pointer overhead in the old scheme. Also it saves the time taken
building the hash table at startup.
This removes support for externally-supplied error string data.
Change-Id: Ifca04f335c673a048e1a3e76ff2b69c7264635be
Diffstat (limited to 'crypto/rsa/CMakeLists.txt')
-rw-r--r-- | crypto/rsa/CMakeLists.txt | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/rsa/CMakeLists.txt b/crypto/rsa/CMakeLists.txt index b3d8fa41..c438e1d8 100644 --- a/crypto/rsa/CMakeLists.txt +++ b/crypto/rsa/CMakeLists.txt @@ -10,7 +10,6 @@ add_library( blinding.c padding.c rsa_asn1.c - rsa_error.c ) add_executable( |