Code Monkey home page Code Monkey logo

Comments (4)

darksylinc avatar darksylinc commented on August 21, 2024

The following commits aim at reducing STL header dependencies:

a81f34a
2ab245a
51856ac
c166990
b79f48f
5da3ebc
91333d6

from ogre-next.

darksylinc avatar darksylinc commented on August 21, 2024

New data from ClangBuildAnalyzer

It shows we spend a lot of time instantiating ParamDictionaryMap.
This map is used in StringInterface and Resource derives from it. As a result it ends up being used everywhere.

ParamDictionaryMap is actually used to define msDictionary which is a global static variable.
It doesn't have to be declared in class StringInterface.

Additionally, moving createParamDictionary to a cpp file instead of a header should allow us to completely remove ParamDictionaryMap & msDictionary from the header definition.

OgreGpuProgram.h & OgreGpuProgramParams.h are also expensive, which are included by OgreRenderable.h and hence everywhere.

That's only needed because of _updateCustomGpuParameter. Slightly refactoring that function to use forward declarations should allow us to remove that header.

from ogre-next.

TaaTT4 avatar TaaTT4 commented on August 21, 2024

Don't know if you're aware of it, but this is a brute force tool to clean useless #include. It basically tries to build a project/solution removing headers one by one checking whether errors are raised or not.

from ogre-next.

darksylinc avatar darksylinc commented on August 21, 2024

I was aware of these tools but that one in particular looks very user friendly, thanks!

BTW I should also mention we should try Bloaty McBloatface. Example on libfmt

from ogre-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.