Projet

Général

Profil

Development #64298

Publik - Project management #64274: montée de version django (→ 3.2 LTS)

django 3.2 vs {% skeleton_extra_placeholder %}

Ajouté par Frédéric Péters il y a environ 2 ans. Mis à jour il y a plus d'un an.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
18 avril 2022
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non
Tags:

Description

Après django 2.2 il y a eu ce commit :

    commit 04ac9b45a34440fa447feb6ae934687aacbfc5f4
    Author: Alex Gaynor <alex.gaynor@gmail.com>
    Date:   Tue Oct 8 22:25:20 2019 -0400

        Improved performance of django.template.base.Parser.

        pop(0), which is used to fetch each token, is O(n) in the length of the
        list. By reversing the list and operating off the end, we can perform
        next_token(), prepend_token(), and delete_first_token() in constant
        time.

et comme skeleton_extra_placeholder fonctionne en partant d'une copie des tokens, le résultat produit n'est plus correct.


Fichiers

Révisions associées

Révision 68e70703 (diff)
Ajouté par Frédéric Péters il y a environ 2 ans

misc: adapt skeletontemplate tag for 3.2 (#64298)

This follows this django change:

commit 04ac9b45a34440fa447feb6ae934687aacbfc5f4
Author: Alex Gaynor <>
Date: Tue Oct 8 22:25:20 2019 -0400

Improved performance of django.template.base.Parser.
pop(0), which is used to fetch each token, is O(n) in the length of the
list. By reversing the list and operating off the end, we can perform
next_token(), prepend_token(), and delete_first_token() in constant
time.

Historique

#1

Mis à jour par Frédéric Péters il y a environ 2 ans

Sans ajouter d'exécution des tests avec 3.2 dans jenkins pour le moment, en me disant que je vais sauver la planète en attendant qu'un calendrier de bascule puisse être envisagé.

#2

Mis à jour par Thomas Noël il y a environ 2 ans

  • Statut changé de Solution proposée à Solution validée

Ack, quoique je n'ai rien vu dans le programme des Verts contre le pop(0). Un oubli, sans doute.

#3

Mis à jour par Frédéric Péters il y a environ 2 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 68e707037715de67dc38e8cc4ac9c41cabd6ad7c
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Mon Apr 18 11:29:31 2022 +0200

    misc: adapt skeletontemplate tag for 3.2 (#64298)

    This follows this django change:

    commit 04ac9b45a34440fa447feb6ae934687aacbfc5f4
    Author: Alex Gaynor <alex.gaynor@gmail.com>
    Date:   Tue Oct 8 22:25:20 2019 -0400

        Improved performance of django.template.base.Parser.

        pop(0), which is used to fetch each token, is O(n) in the length of the
        list. By reversing the list and operating off the end, we can perform
        next_token(), prepend_token(), and delete_first_token() in constant
        time.
#4

Mis à jour par Transition automatique il y a environ 2 ans

  • Statut changé de Résolu (à déployer) à Solution déployée
#5

Mis à jour par Transition automatique il y a presque 2 ans

Automatic expiration

#6

Mis à jour par A. Berriot il y a plus d'un an

  • Tâche parente mis à #64274

Formats disponibles : Atom PDF