我有一些嵌套函数,如 var die = function() { ... }}
据我所知,每次调用die时都会创建(分配) freak函数。因此,如果freak被调用了很多时间,这意味着大量内存将被浪费(假设die没有使用freak上下文中的任何内容;换句话说,即使只分配了一次,并在freak的多个调用之间共享--这就是浪费的意思)。
是这样说的:
You can use it with the FREAK descriptor that is scale invariant.Just replace the BriefDescriptorExtractor with Freak and it should do the trick.