Seenthis
•
 
Identifiants personnels
  • [mot de passe oublié ?]

 

Nicolas Hoizey

@nhoizey
//
RSS: Nicolas Hoizey
tous les messages de Nicolas Hoizey
  • @nhoizey
    Nicolas Hoizey @nhoizey CC BY-NC-SA 2/08/2017
    5
    @rastapopoulos
    @b_b
    @monolecte
    @tofulm
    @mukt
    5

    How to lose weight (in the browser)
    ▻https://browserdiet.com

    “And what if we got together a bunch of experts who work on large sites to create a definitive front-end performance guide? And not just one of those boring guides made for robots, what if we did something fun?”

    #webperf_clevermarks

    Nicolas Hoizey @nhoizey CC BY-NC-SA
    • @rastapopoulos
      RastaPopoulos @rastapopoulos CC BY-NC 2/08/2017

      #développement #web #webperf #bonnes_pratiques

      RastaPopoulos @rastapopoulos CC BY-NC
    • @b_b
      b_b @b_b PUBLIC DOMAIN 2/08/2017
      for (i = 0; i < arr.length; i++) {
       // Bad - size needs to be recalculated 1000 times
      }

      for (i = 0, len = arr.length; i < len; i++) {
       // Good - size is calculated only 1 time and then stored
      }
      b_b @b_b PUBLIC DOMAIN
    • @rastapopoulos
      RastaPopoulos @rastapopoulos CC BY-NC 2/08/2017

      Et déjà traduit en français, tant qu’à faire :
      ▻https://browserdiet.com/fr

      RastaPopoulos @rastapopoulos CC BY-NC
    • @fil
      Fil @fil 2/08/2017

      l’exemple choisi est inélégant et probablement inutile
      ▻https://stackoverflow.com/questions/5752906/is-reading-the-length-property-of-an-array-really-that-expensive-an-o

      et on peut l’optimiser encore en faisant
      for (var i = arr.length; i-->0) { pouet }

      Fil @fil
    • @b_b
      b_b @b_b PUBLIC DOMAIN 3/08/2017
      @fil

      @fil inélégant toi même :p

      b_b @b_b PUBLIC DOMAIN
    Écrire un commentaire

thèmes

  • #webperf_clevermarks
Propriété intellectuelle Recommandations API