Skip to content

console.log improvements #60032

Description

@mertcanaltin

I viewed this post last week : https://x.com/_rafaelgss/status/1971311652365840717

I want to solve this problem, first look ı read the post by this @RafaelGSS
https://nearform.com/insights/the-cost-of-logging-in-2022/

This post usually mention Pino technics, i will try this technics in node js console area

if your any suggestion pls send comment this issue, thanks all

Activity

  1. BridgeAR commented on Sep 27, 2025

    @BridgeAR
    Member

    Console.log and others are already optimized (it is actually using util.inspect, which is the main cost). There is likely still room for improvement in a few cases while I don't think this warrants a tracking issue. I am therefore going to close this.

  2. mertcanaltin commented on Sep 27, 2025

    @mertcanaltin
    MemberAuthor

    @BridgeAR Hello, thank you for your reply. If it can be improvemet, I don't think we should close it

    This issue becomes a task for us in improvement planning.

  3. BridgeAR commented on Sep 27, 2025

    @BridgeAR
    Member

    @mertcanaltin code can almost always be optimized. The referenced blog post is not applicable to Node.js core and if you have anything concrete, please go for it. We have too many open issues to have a tracking issue for something that does not seem to be an issue in Node.js core and without concrete things that should be done.

  4. mertcanaltin commented on Sep 27, 2025

    @mertcanaltin
    MemberAuthor

    but wouldn't it be better if this topic and discussion remained open so that I can achieve something concrete here?

    We are opening it up to raise issues and connect them. I also think the discussion should remain open to achieve concrete results. If improvement were not possible, I agree that closing it would be healthy, as you said.

  5. RafaelGSS commented on Sep 28, 2025

    @RafaelGSS
    Member

    Move this to nodejs/performance. Any performance speculation can be discussed there.

  6. mertcanaltin commented on Sep 28, 2025

    @mertcanaltin
    MemberAuthor

    @RafaelGSS thanks! I will move this issue to nodejs/performance

  7. mertcanaltin commented on Sep 30, 2025

    @mertcanaltin
    MemberAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions