Git Product home page Git Product logo

Comments (5)

v0lker avatar v0lker commented on May 2, 2024 1

remaining task is to allow a string instead of the numerical value for the -l option. i'll provide a PR soon, unless someone else is eager...

from rt-app.

jlelli avatar jlelli commented on May 2, 2024

It might be handy. Maybe just follow the -v -vv -vvv common pattern?
Also maybe keep a config option to completely disable logging? Just in case overhead is found not to be so negligible.

from rt-app.

v0lker avatar v0lker commented on May 2, 2024

-v is already taken for 'version', so i'd rather leave it in peace. any other suggestion?

as for the overhead and completely disabling:
going from setting the debug level at compile time to doing it dynamically, we'd incur the overhead of an integer comparison for every log_*() invocation. the branch predictor should be very effective here (i think) as the result is always the same.

right now i can think of only one way to have even less overhead and still log dynamically: rewriting the log function in the process' .text in memory on start-up (replacing the function calls with nops). i don't think it is worth the effort, though.

what would you suggest?

from rt-app.

jlelli avatar jlelli commented on May 2, 2024

OK. Please go for -l --log and don't worry about the overhead. We will figure it out later if it turns out to be a real problem, I guess.

from rt-app.

v0lker avatar v0lker commented on May 2, 2024

#68 implements the remaining issue

from rt-app.

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.