|
From: | walter |
Subject: | Re: Passing Tags or Additional Port Data to Change Parameters of Downstream Blocks |
Date: | Sat, 20 Apr 2024 16:42:02 -0700 |
Hi Matt, ++props for Ron's example of PMT tagging in C++ :-) Quick tip: as a person with strong/current Python skills and C++ expertise that's 20 years out-of-date, I've found that I can get "best results per unit time" by reading the C++ code/docs but coding my blocks and snippets in efficiently-written Python. I've found that well-written Python doesn't introduce bottlenecks, and I can apply the time saved to high-level organization of flowgraphs that optimizes throughput and latency. Getting acceptable performance in Python requires being comfortable with loop-free vector coding in numpy, as well as judicious use of itertools, functools, and other "straight-to-C" mechanisms. A nice feature to be aware of is that GR sidesteps the Python GIL at a high level. This provides a level of efficiency unavailable in ordinary Python environments. Hope this helps. - W Matt wrote: (and earlier) ....
----------
|
[Prev in Thread] | Current Thread | [Next in Thread] |