On 31/05/2016 12:22, Dimitry Sibiryakov wrote:
>    Hello, All.
>
>    During string class refactoring I tried to declare all constructors 
> explicit because 
> they are relatively heavy in term of data moving. And it was amazing to see 
> in how many 
> places in code compiler is implicitly creating temporary objects. I'm sure 
> that in some 
> cases it was completely unintentional behavior.
>    Because such things may greatly affect performance and Firebird is 
> supposed to be a 
> heavy loaded service, may be it worth to add a rule to coding style guide to 
> make any 
> non-trivial constructor explicit?..
>
String class is general class to be used everywhere except in
performance needed code.

As a general class, should be simple to use with implicit constructors
and conversions.

We tend to already use explicit constructors when needed, please, don't
make non-necessary changes (as in string class) with crapy .


Adriano


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to