Skip to content

There's __FILE__, __LINE__, __METHOD__, __CLASS__ and slow debug_backtrace() call. Why not create __TRACE__ ? #18437

Closed as not planned
@gzhegow1991

Description

@gzhegow1991

Description

I mean constant trace that equals first step of debug_backtrace() without arguments.

Before i compared exception creation with calling debug_backtrace(NO_ARGS, limit = 1) and creating exception was FASTER.

But using constants like FILE and LINE is faster 4 times that creating the exception. Why not create TRACE constant to give possibility to require argument filled with this TRACE ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions