On 04/04/2016 12:56 PM, Dmitry Yemanov wrote:
> 04.04.2016 12:47, Alex Peshkoff wrote:
>
>> Method 3 is good when talking about comparison, but for all other usages
>> we will have conversion overhead almost for nothing.
> What other usages do you have in mind? File is opened usually once,
> conversion is OK here. Monitoring may deal with UTF8, logging may
> require conversions but errors are expected to be rare.
>
> What else?
>

There are PathUtils that execute on UTF8 in average (as long as most of 
text is ascii) better than unicode but there are not too much calls to it.
I must agree - most of usage of PathName is related with database names 
and therefore expandDatabaseName() function which performs a lot of 
compare. But on the other hand it's usign hashes for table lookups which 
makes number of string comparisons not too big.

Finally it seems to me that performance of PathName will not seriously 
affect overall performance but must say that I have no facts to proof that.


------------------------------------------------------------------------------
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to