Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Max number of parameters
Message
From
30/06/2021 02:26:42
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
29/06/2021 15:47:35
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01681616
Message ID:
01681643
Views:
52
>>>I was getting an error and I sensed that the reason was the extra parameter I added. You confirmed it.
>
>I hesitate to mention performance after some recent threads(!) but passing lots of/large parameters definitely carries a performance hit. The other option is PRIVATE variables or parameter objects in the calling code: you can have as many as you need that are visible to called functions without the performance impact.

There was a situation where I had to have a few private variables (and write WARNING comments all around) because of the code in bizobject class, which would do the tableupdate() somewhere deep where these would then be invisible - and they were ?parameters in the SQL statement.

It didn't occur to me to check the speed penalty for parameters, because if anything was slow, it was usually the denormalized cursors brought from SQL, that's slow. Which is why I'd usually get a decent speed gain by not joining them SQL side, but rather bringing each of them in one command (and renaming aliases accordingly), then joining them in Fox. The bulk that went down the wire was significantly reduced - the nearly cartesian product size vs sum of its factors - and that was all the speed gain I needed. Squeezing extra permille by juggling parameters would be an exercise in reduced gains.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform