diff options
author | jsing <> | 2022-02-19 16:00:14 +0000 |
---|---|---|
committer | jsing <> | 2022-02-19 16:00:14 +0000 |
commit | 442d44388d1decd61ea78c89db2829f9e63c6082 (patch) | |
tree | c5fc049c5814b278e5f308e30b231d9e044484ac /src/lib | |
parent | 25a9629e43e037feecbfc10137ec9671aac8194a (diff) | |
download | openbsd-442d44388d1decd61ea78c89db2829f9e63c6082.tar.gz openbsd-442d44388d1decd61ea78c89db2829f9e63c6082.tar.bz2 openbsd-442d44388d1decd61ea78c89db2829f9e63c6082.zip |
Remove references to performance issues caused by frequent memmove().
ok inoguchi@ tb@
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/man/BIO_s_mem.3 | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/lib/libcrypto/man/BIO_s_mem.3 b/src/lib/libcrypto/man/BIO_s_mem.3 index 89a9d55df1..f2522a8065 100644 --- a/src/lib/libcrypto/man/BIO_s_mem.3 +++ b/src/lib/libcrypto/man/BIO_s_mem.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: BIO_s_mem.3,v 1.14 2019/06/06 01:06:58 schwarze Exp $ | 1 | .\" $OpenBSD: BIO_s_mem.3,v 1.15 2022/02/19 16:00:14 jsing Exp $ |
2 | .\" full merge up to: OpenSSL 8711efb4 Mon Apr 20 11:33:12 2009 +0000 | 2 | .\" full merge up to: OpenSSL 8711efb4 Mon Apr 20 11:33:12 2009 +0000 |
3 | .\" selective merge up to: OpenSSL 36359cec Mar 7 14:37:23 2018 +0100 | 3 | .\" selective merge up to: OpenSSL 36359cec Mar 7 14:37:23 2018 +0100 |
4 | .\" | 4 | .\" |
@@ -49,7 +49,7 @@ | |||
49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
51 | .\" | 51 | .\" |
52 | .Dd $Mdocdate: June 6 2019 $ | 52 | .Dd $Mdocdate: February 19 2022 $ |
53 | .Dt BIO_S_MEM 3 | 53 | .Dt BIO_S_MEM 3 |
54 | .Os | 54 | .Os |
55 | .Sh NAME | 55 | .Sh NAME |
@@ -199,14 +199,6 @@ until the BIO is freed. | |||
199 | .Pp | 199 | .Pp |
200 | Writes to memory BIOs will always succeed if memory is available: | 200 | Writes to memory BIOs will always succeed if memory is available: |
201 | their size can grow indefinitely. | 201 | their size can grow indefinitely. |
202 | .Pp | ||
203 | Every read from a read/write memory BIO will remove the data just read | ||
204 | with an internal copy operation. | ||
205 | If a BIO contains a lot of data and it is read in small chunks, | ||
206 | the operation can be very slow. | ||
207 | The use of a read only memory BIO avoids this problem. | ||
208 | If the BIO must be read/write then adding a buffering BIO | ||
209 | to the chain will speed up the process. | ||
210 | .Sh RETURN VALUES | 202 | .Sh RETURN VALUES |
211 | .Fn BIO_s_mem | 203 | .Fn BIO_s_mem |
212 | returns a pointer to a static object. | 204 | returns a pointer to a static object. |
@@ -275,6 +267,3 @@ There should be an option to set the maximum size of a memory BIO. | |||
275 | .Pp | 267 | .Pp |
276 | There should be a way to "rewind" a read/write BIO without destroying | 268 | There should be a way to "rewind" a read/write BIO without destroying |
277 | its contents. | 269 | its contents. |
278 | .Pp | ||
279 | The copying operation should not occur after every small read | ||
280 | of a large BIO to improve efficiency. | ||