DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
TypeScript Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
TypeScript
A decorated method's wrapping logic (like a timing decorator) executes on every call to that method. What's the performance implication?
A
None — decorators have zero runtime presence
B
The wrapping logic adds real, if usually small, per-call overhead, the same as any other function-wrapping technique — worth considering for extremely hot code paths
C
Decorators only run once regardless of how many times the method is called
D
Decorators make methods run faster
Check Answer