dataobjects-net
dataobjects-net copied to clipboard
Optimization: Dispatch Translator by virtual functions instead of swi…
Using Virtual-function dispatching minimizes number of branches, which is a bottleneck in CPU
This approach applied to SELECT
translator only as an example.
Can be propagated to other frequently used SQL statements
Also:
- Add trailing spaces explicitly when we are sure they must be to avoid costly string analysis for pretty SQL presentation