單態化 (Monomorphization)

Truffle 具有自動化的單態化方法 (也稱為「分割」)。如需更多關於單態化優點的資訊,請繼續閱讀單態化使用案例。(Truffle has an automatic approach to monomorphization (also known as “splitting”). For more information about the benefits of monomorphization, continue reading to Monomorphization Use Cases.)

它由 Splitting 引擎選項控制,預設為開啟。在您的命令列中加入 --engine.Splitting=false 將停用它。(It is controlled by the Splitting engine option and is on by default. Adding --engine.Splitting=false to your command line will disable it.)

此啟發式方法依賴語言實作提供的資訊來引導決策。若要深入瞭解如何在您的語言實作中使用新方法,請參考回報多型指南。(The heuristic relies on information from the language implementation to guide the decisions. To find out more about how to use the new approach in your language implementation, refer to the Reporting Polymorphism guide.)

若要深入瞭解新方法如何運作,請參閱分割指南。(For more details on how the new approach works, see the Splitting guide.)

與我們聯繫 (Connect with us)