06.05.2016 21:56, Dmitry Yemanov wrote:
> Speaking about storage, would it make sense to define PathName
> statically allocated (MAX_PATH limited)? We have just a few of these
> objects stored persistently, most dynamic operations are local -- having
> them on stack would save us costly reallocations.

   I don't think that limit full file name size to MAX_PATH is a good idea. It 
is quite 
low limit and can be easily reached. To decrease number of allocation we can 
increase 
static part of storage from current 32 bytes to 128.
   String storage uses exponential growth, so reallocation on modification is 
not a 
problem. Reallocation of copying could be.

PS: Theoretical limit of path on Windows is 32k unicode characters.

-- 
   WBR, SD.

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to