To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=56783
                  Issue #:|56783
                  Summary:|cold-start speedup - file touch redux ...
                Component:|utilities
                  Version:|680m133
                 Platform:|All
                      URL:|
               OS/Version:|All
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|PATCH
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|hro
              Reported by:|mmeeks





------- Additional comments from [EMAIL PROTECTED] Thu Oct 27 04:45:25 -0700 
2005 -------
So - the configmgr likes to access/stat all files in various directories
repeatedly; this patch reduces that and (controversially) uses the directory
mtime instead of the individual file mtimes. Not certain how that constraint
works on Win32 etc. but - should work well for Unix.

With an strace log: strace ... | grep '\.xcu'  | sed 's/^.*("//g' | sed
's/".*//' | sort | uniq | wc -l

I get:
before 208 hits,
after: 118 hits

Numbers not ~that useful since we go accessing a bunch of files that are not
there which should be quick anyway - anyhow this saves an estimated 90 seeks ==
900ms of cold-start time.

The various traces causing the grief:

#0  0x40fcf836 in opendir () from /lib/tls/libc.so.6
#1  0x408e3995 in osl_openDirectory () from ./libuno_sal.so.3
#2  0x455b9e7d in osl::Directory::open () at Reference.h:244
#3  0x455f3c8d in configmgr::localbe::LocalMultiStratum::listLayerIds
(this=0x80f6300, [EMAIL PROTECTED], [EMAIL PROTECTED])
    at
/nld/opt/suse-OpenOffice/src680-m133/configmgr/source/localbe/localmultistratum.cxx:115
#4  0x455e274b in
configmgr::backend::MultiStratumBackend::searchSupportingStrata () at
Reference.h:244
#5  0x455e2a7a in configmgr::backend::MultiStratumBackend::listLayers () at
Reference.h:244
#6  0x455e0ce6 in configmgr::backend::MultiStratumBackend::listOwnLayers () at
Reference.h:244
#7  0x455d0e27 in configmgr::backend::BackendAccess::getLayers () at 
Reference.h:244
#8  0x455d2a59 in configmgr::backend::BackendAccess::getNodeData () at
Reference.h:244
#9  0x455a0bca in configmgr::backend::CacheController::loadDirectly () at
Reference.h:244

More stats from here:

#0  0x408e742e in osl_getFileStatus () from ./libuno_sal.so.3
#1  0x455b9e5c in osl::DirectoryItem::getFileStatus () at Reference.h:244
#2  0x455f4d31 in configmgr::localbe::implNormalizeURL () from 
./configmgr2.uno.so
#3  0x455f509e in configmgr::localbe::normalizeURL () from ./configmgr2.uno.so
#4  0x455f0a26 in configmgr::localbe::LocalSchemaSupplier::initialize () at
Reference.h:244
#5  0x4087aa64 in
cppu::OSingleFactoryHelper::createInstanceWithArgumentsAndContext () from
./libuno_cppuhelpergcc3.so.3


#0  0x408e742e in osl_getFileStatus () from ./libuno_sal.so.3
#1  0x455b9eac in osl::DirectoryItem::getFileStatus () at Reference.h:244
#2  0x455b9d11 in configmgr::FileHelper::getModifyStatus () at Reference.h:244
#3  0x455e921c in configmgr::localbe::BasicLocalFileLayer::getTimestamp () at
Reference.h:244
#4  0x455f15a7 in configmgr::localbe::LocalStratumBase::isMoreRecent () at
Reference.h:244
#5  0x455f18fb in configmgr::localbe::LocalStratumBase::getLayer () at
Reference.h:244
#6  0x455f22bc in configmgr::localbe::LocalSingleStratumBase::getLayer () at
Reference.h:244
#7  0x455e28c7 in
configmgr::backend::MultiStratumBackend::searchSupportingStrata () at
Reference.h:244
#8  0x455e2aca in configmgr::backend::MultiStratumBackend::listLayers () at
Reference.h:244
#9  0x455e0d36 in configmgr::backend::MultiStratumBackend::listOwnLayers () at
Reference.h:244
#10 0x455d0e77 in configmgr::backend::BackendAccess::getLayers () at 
Reference.h:244
#11 0x455d2aa9 in configmgr::backend::BackendAccess::getNodeData () at
Reference.h:244
#12 0x455a0c1a in configmgr::backend::CacheController::loadDirectly () at
Reference.h:244
#13 0x455a2863 in configmgr::backend::CacheController::loadComponent () at
Reference.h:244
#14 0x455a7406 in configmgr::TreeManager::requestSubtree () at Reference.h:244
#15 0x45634645 in configmgr::OProviderImpl::initSession () from 
./configmgr2.uno.so
#16 0x456317ff in configmgr::OProvider::implConnect () from ./configmgr2.uno.so
#17 0x4563610d in configmgr::OConfigurationProvider::connect () from
./configmgr2.uno.so

HTH.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to