Commit 6e363af
committed
Write to a buf before writing to stdout
I noticed that using serde to write to stdout consumes quite a bit of
fuel. Not sure why.
Here's a result from a test I ran (not using the Functions crate, but
doing essentially the same thing):
Before:
```
Linear Memory Usage: 1216KB
Instructions: 9.243096M
Size: 180KB
```
After:
```
Linear Memory Usage: 1280KB
Instructions: 6.448534M
Size: 181KB
```1 parent 93ce9a0 commit 6e363af
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
0 commit comments