关于react.js:React中的memoized为什么不是memorized

当发现React.js中的memoized认为是拼写错误,然而本着小心求证的心态还是去百度翻译有道查了下词典。发现果然是拼写错了。

最初通过多番查找发现memoize是专门用于计算结果的存储。英文词典没有这个单词的收录。

As verbs the difference between memorize and memoize is that memorize is to learn by heart, commit to memory while memoize is (computing) to store (the result of a computed expression) so that it can be subsequently retrieved without repeating the computation.

作为动词,memorize和memoize的区别在于,memorize是背诵,致力于熟记,而memoize(计算)是存储(计算表达式的后果),以便在不反复计算的状况下随后检索。

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理