Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit 738969b

Browse files
committed
説明の追記
1 parent 8a0eea7 commit 738969b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ _It is currently a little faster with small improvements._
5959
You can get full benchmark score and some other graphs [here](https://docs.google.com/spreadsheets/d/1DJhf8KX1-BAxCGor5cZdlO3626AZbKeet-rkk26XGAE/).
6060

6161
### Mechanism
62+
`FastKFunction` realizes high speed by the following ingenuity.
63+
64+
- Call `KFunction` with `call` if the argument is fully initialized.
65+
- If possible, call `Java` `Method` or `Constructor` directly for further speedup.
66+
- Efficient retention of arguments and switching between `call`/`callBy` calls by devising a data structure.
67+
- Avoid using `spread operator` as much as possible.
68+
6269
I have a blog post on the mechanism of fast invocation (in Japanese).
6370

6471
- [【Kotlin】KFunctionを高速に呼び出す(前編) \- Qiita](https://qiita.com/wrongwrong/items/f7b15d54956191f471d1)

0 commit comments

Comments
 (0)