エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
One-Line JavaScript Memoization
Computing the length of a Bezier curve is expensive, but the length of a given Bezier doesn’t cha... Computing the length of a Bezier curve is expensive, but the length of a given Bezier doesn’t change over time. In my JavaScript Bezier implementation, I wanted to compute the length only the first time it’s need, and save this result in order to return instantly thereafter. This is a special case of memoization. There are well-known strategies for implementing memoization. But getLength is a null






2010/11/30 リンク