Skip to content

Commit eacff8c

Browse files
authored
Trying some other optimizations beside type-infer (#130)
* opt: remove box * use FunctionWrapper as Instruction * another approach to add type info in * toggle FunctionWrapper usage * add return value type as TapedFunction's static parameter * don't use inferred return type * fix ir * disable coverage when run tests * Revert "fix ir" This reverts commit 316d9f8. * put getter/setter into box * add TypedFunction * inline functions * compile tf * fix parametiric type of tf * revise code
1 parent f4e64d5 commit eacff8c

File tree

5 files changed

+170
-120
lines changed

5 files changed

+170
-120
lines changed

.github/workflows/Testing.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,5 @@ jobs:
4242
${{ runner.os }}-
4343
- uses: julia-actions/julia-buildpkg@latest
4444
- uses: julia-actions/julia-runtest@latest
45+
with:
46+
coverage: false

Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ version = "0.7.0"
77

88
[deps]
99
CodeInfoTools = "bc773b8a-8374-437a-b9f2-0e9785855863"
10+
FunctionWrappers = "069b7b12-0de2-55c6-9aab-29f3d0a68a2e"
1011
LRUCache = "8ac3fa9e-de4c-5943-b1dc-09c6b5f20637"
1112
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1213
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

src/Libtask.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module Libtask
22

33
using CodeInfoTools
4+
using FunctionWrappers: FunctionWrapper
45
using LRUCache
56

67
export TapedTask, consume, produce

0 commit comments

Comments
 (0)