[Differential] [Request, 177 lines] D322: Refactor DeclarationId

kfunk (Kevin Funk) noreply at phabricator.kde.org
Wed Sep 2 22:06:20 UTC 2015


kfunk created this revision.
Herald added a subscriber: kdevelop-devel.

REVISION SUMMARY
  Make use C++11 union (saves around 8 bytes per instance)
  
  language: Structure-pack most used types
  
  Make use of C++11 typed-enums and C++11 unions
  
  sizeof-statistics (64 bit system):
  - DUChainBaseData: 24B -> 20B
  - AbstractTypeData: 32B -> 12B
  - DelayedTypeData: 40B -> 24B
  - DeclarationData: 76B -> 60B
  - DUContextData: 64B -> 56B
  - TopDUContextData: 96B -> 80B (not instantiated *that* often)

REPOSITORY
  rKDEVPLATFORM KDevPlatform

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D322

AFFECTED FILES
  language/duchain/declaration.h
  language/duchain/declarationid.cpp
  language/duchain/declarationid.h
  language/duchain/duchainbase.h
  language/duchain/ducontext.h
  language/duchain/ducontextdata.h
  language/duchain/topducontext.cpp
  language/duchain/topducontext.h
  language/duchain/topducontextdata.h
  language/duchain/types/abstracttype.cpp
  language/duchain/types/abstracttype.h
  language/duchain/types/delayedtype.h
  language/duchain/types/typesystem.cpp
  language/duchain/types/typesystemdata.h

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: kfunk
Cc: kdevelop-devel


More information about the KDevelop-devel mailing list