webp-batch-convert icon indicating copy to clipboard operation
webp-batch-convert copied to clipboard

递归栈溢出问题

Open Jeffrey-mu opened this issue 3 years ago • 1 comments

Jeffrey-mu avatar Sep 14 '22 07:09 Jeffrey-mu

当文件超出一定数量 递归执行会造成内存溢出 需要优化 递归调用方式 image “事件驱动” (Event-Driven)的特性 在 JavaScript 中,由于其 “事件驱动” (Event-Driven)的特性,使用 "setTimeout"、 “nextTick” 等方式对指定函数的调用,实际上是将该函数的引用(指针)储存起来,并在适当的时候调用。 参考

Jeffrey-mu avatar Sep 14 '22 07:09 Jeffrey-mu