Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

179
Vistas
Is using arrow functions in nodeJS inefficient compared to named function?

Consider these two implementation of event handlers

Implementation 1:

on('event' namedFuction)
namedFuction(){
  // do something
}

Implementation 2:

on('event', () => { 
// do something
})

Assume that these will be called multiple times. I have been told implementation 1 will be more memory efficient than implementation 2, because namedFunction() will be stored in memory once and arrow function will be recalculated each time, and also we should avoid arrow functions in general. How much truth there is to it?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda