dataobjects-net icon indicating copy to clipboard operation
dataobjects-net copied to clipboard

Optimization: Dispatch Translator by virtual functions instead of swi…

Open SergeiPavlov opened this issue 1 year ago • 0 comments

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

SergeiPavlov avatar Jan 04 '24 06:01 SergeiPavlov