README [skip ci]
This commit is contained in:
parent
fec71fd984
commit
348e770ce6
1 changed files with 2 additions and 2 deletions
|
|
@ -874,7 +874,7 @@ holds the entire response in memory at once. Let's download a 200mb file with
|
||||||
10mb heap size:
|
10mb heap size:
|
||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
$ time bb -Xmx10m -e '(io/copy (:body (curl/get "http://ipv4.download.thinkbroadband.com/200MB.zip" {:as :stream})) (io/file "/tmp/200mb.zip"))'
|
$ bb -Xmx10m -e '(io/copy (:body (curl/get "http://ipv4.download.thinkbroadband.com/200MB.zip" {:as :stream})) (io/file "/tmp/200mb.zip"))'
|
||||||
```
|
```
|
||||||
|
|
||||||
With `babashka.curl` this forks fine. However with `org.httpkit.client` that
|
With `babashka.curl` this forks fine. However with `org.httpkit.client` that
|
||||||
|
|
@ -882,7 +882,7 @@ won't work. Not even 190mb of heap will do:
|
||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
|
|
||||||
$ time bb -Xmx190m -e '(io/copy (:body @(org.httpkit.client/get "http://ipv4.download.thinkbroadband.com/200MB.zip" {:as :stream})) (io/file "/tmp/200mb.zip"))'
|
$ bb -Xmx190m -e '(io/copy (:body @(org.httpkit.client/get "http://ipv4.download.thinkbroadband.com/200MB.zip" {:as :stream})) (io/file "/tmp/200mb.zip"))'
|
||||||
Sun Nov 08 23:01:46 CET 2020 [client-loop] ERROR - select exception, should not happen
|
Sun Nov 08 23:01:46 CET 2020 [client-loop] ERROR - select exception, should not happen
|
||||||
java.lang.OutOfMemoryError: Array allocation too large.
|
java.lang.OutOfMemoryError: Array allocation too large.
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue