Commit 8ea2899
Peformance Optimization (#138)
* use generated function to run instruction
* optimize mem allocation
* optiomize copy and update_var!
* optimization on constant
* remove MacroTools
* don't optimize function call
* opt const function-call conditionally
* remove `val`
* breakdown benchmarks
* use Vector as bindings
* use Int as box, inline _update_var! manually
* code refactor
* remove unused code
* Update src/tapedfunction.jl
* add comments
* update comments
* update from review
* update from review
* use a compact bindings, remove the offset limitation
* bugfix: unify TypedSlot and SlotNumber
* document
* refine types
* give bindings a sizehint
* update docs for `tape_copy`
* remove outdated comments
* update from review
* disable logging by default
* update comments
* use vector to store arg indices
* rename fields in TF
* remove TempBindings
* Update tapedfunction.jl
* Update Project.toml
Co-authored-by: Hong Ge <3279477+yebai@users.noreply.github.com>1 parent 24b3d4b commit 8ea2899
File tree
4 files changed
+224
-134
lines changed- perf
- src
4 files changed
+224
-134
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
112 | 125 | | |
0 commit comments