Good day all,
I have an ecumenical question on effeciency.
Consider a function to check if a specific value exists on a table.
Currently each table has its own, overloaded by key type.
But there will be a number of very similar fuctions in the final system.
So that makes them ideal candidates for a single template function in a shared library.
Or a single conventional check function:
check(String^ ArgTable, String^ ArgKeyName, Object^ ArgKeyValue)
ArgKeyValue is subesequently interrogated to determine its type.
This third option looks like the cleanest in terms of readabilty and fewest lines of code,while the first generated the most code by some distance.
But which solution will perform best at run time?