Skip to content

Commit 82ec9a6

Browse files
committed
Engine: Preoptimize monitor reporters
1 parent d5c8d3c commit 82ec9a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/engine/internal/engine.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,6 +1876,9 @@ void Engine::compileMonitor(std::shared_ptr<Monitor> monitor)
18761876

18771877
for (const std::string &opcode : unsupportedBlocks)
18781878
m_unsupportedBlocks.insert(opcode);
1879+
1880+
// Preoptimize to avoid lag when updating monitors for the first time
1881+
compiler.preoptimize();
18791882
} else {
18801883
std::cout << "warning: unsupported monitor block: " << block->opcode() << std::endl;
18811884
m_unsupportedBlocks.insert(block->opcode());

0 commit comments

Comments
 (0)