From 3fc58bdd9f17e8bb4765a3a1dac9727ce98dd09b Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Sun, 12 Dec 2021 12:42:16 -0800 Subject: [PATCH] minor note regarding improving performance of C++-generated code --- src/script_opt/CPP/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script_opt/CPP/README.md b/src/script_opt/CPP/README.md index 1ed3cc6c13..0187be4397 100644 --- a/src/script_opt/CPP/README.md +++ b/src/script_opt/CPP/README.md @@ -185,7 +185,7 @@ particularly difficult to fix. * A number of steps could be taken to increase the performance of the optimized code. These include: - 1. Switching the generated code to use the new ZVal-related interfaces. + 1. Switching the generated code to use the new ZVal-related interfaces, including for vector operations. 2. Directly calling BiFs rather than using the `Invoke()` method to do so. This relates to the broader question of switching BiFs to be based on a notion of "inlined C++" code in Zeek functions, rather than using the standalone `bifcl` BiF compiler. 3. Switching the Event Engine over to queuing events with `ZVal` arguments rather than `ValPtr` arguments. 4. Making the compiler aware of certain BiFs that can be directly inlined (e.g., `network_time()`), a technique employed effectively by the ZAM compiler.