Hi -
I wrote:
> By the way, how much processing time or space does this approach
> (pmStore then pmFetch) save, over doing it with current PMAPI [...]
Thinking of this again, I'm having trouble seeing how the pmstore
approach could improve performance. On an amortized basis, assuming
multiple containers and that we need to query the same containers
repeatedly, the pmStore mode would have to look like
pmNewContext
pmStore (select-container X)
pmFetch
pmStore (select-container Y)
pmFetch
pmStore (select-container Z)
pmFetch
pmStore (select-container X)
pmFetch
pmStore (select-container Y)
pmFetch
pmStore (select-container Z)
pmFetch
[...]
whereas the classic way would be
pmNewContext(X)
pmNewContext(Y)
pmNewContext(Z)
once, then:
X->pmFetch()
Y->pmFetch()
Z->pmFetch()
X->pmFetch()
Y->pmFetch()
Z->pmFetch()
[...]
So classical separate contexts win in terms of round-trip
traffic, as soon as the *second re-query*.
- FChE
|