On Mon, May 6, 2019 at 6:04 PM Steven Rostedt rostedt@goodmis.org wrote:
That iterator does something special for each individual record. All 40,000 of them.
.. yes, but the 'int3' only happens for *one* of them at a time.
Why would it bother with the other 39,999 calls?
You could easily just look up the record at the int3 time, and just use the record. Exactly the same way you use the one-at-a-time ones.
Instead, you emulate a fake call to a function that *wouldn't* get called, which now does the lookup there. That's the part I don't get. Why are you emulating something else than what you'd be rewriting?
Linus