——IMF总裁 格奥尔基耶娃
Follow topics & set alerts with myFT。PDF资料是该领域的重要参考
,更多细节参见新收录的资料
Trade-offs worth knowing: genericClosure's std::map tracks seen keys at O(log n) per step. With unique monotonic keys, the check is effectively a sorted insert, but the map still grows linearly with step count. State must be data that deepSeq can fully evaluate. deepSeq recurses through attrsets and lists, but a function value is already in normal form. There's nothing inside a closure for deepSeq to force. If each step builds a new closure that wraps the previous one (say, { process = x: prev.process (x + 1); } where prev is last step's state), the chain of closure references grows with N. deepSeq sees a function, stops, and the chain survives. The trampoline runs fine; the blowup arrives when you call the accumulated function. A constant function carried unchanged across steps causes no problem at any N.
Девушка элегантно отомстила соседке за съеденный без спроса торт02:31,详情可参考新收录的资料
Что думаешь? Оцени!