Git Product home page Git Product logo

Comments (4)

ricardomv avatar ricardomv commented on June 26, 2024

nah its going to be a mess if you need to do #include "util/macros.h" in every file you need macros just define them in the .h of the file you need the macro (as i think it is now).
The defines too we already have a long compile time if we add every lib we need in every .c file we have the compilation time will increase exponentially.

from candybar.

Lokaltog avatar Lokaltog commented on June 26, 2024

Allright, I'll leave it as it is now then.

Regarding compile time, would it be possible to not include every lib when compiling every C file, I've noticed the compile time starting to get a bit out of hand as I've been adding widgets. It would be nice not having to include libmpdclient in 20 C files that don't actually use libmpdclient. I'm guessing it's possible with autotools, what I'm really asking is if you know whether it's a lot of work implementing and maintaining such a change.

from candybar.

ricardomv avatar ricardomv commented on June 26, 2024

i think that if you only put the header of libmpd in one file it wont make much difference. i think the time we are seeing is the time the pre-processor cpp takes to copy the header files, not really compiling

from candybar.

Lokaltog avatar Lokaltog commented on June 26, 2024

Roger that, I'll leave things as they are.

from candybar.

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.