alloc / alloc/saus

Investigate whether memory usage can be reduced by not caching Promise objects

オープン
#53 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
good first issue
主要言語
TypeScript
スター
38
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

説明

image

My strategy would be to wrap cached promises with a new `CachedPromise` class.

```ts
class CachedPromise {
constructor(promise) {
this.promise = promise
promise.then((result) => {
this.result = result
this.promise = null
}, (error) => {
this.error = error
this.promise = null
})
}
then() {}
catch() {}
finally() {}
}
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。