Organizer: selecting a folder spends about 0.19 s per calculation on the main thread (ProjectContextPanel::initialize)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- c
- Área
- desktop, performance
Línea de trabajo
Start by profiling ProjectContextPanel::initialize while selecting folders with many calculations, as described in the issue; compare local and SSH folders. Identify the per-row work rebuilding the mirror and reading properties, then address its cost or main-thread impact. Add a test that bounds selection time for a folder of N calculations.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Selecting a folder in the Organizer does local work on the GUI main thread after the listing arrives, and that work grows with the number of calculations in the folder. Measured headless on an SSH folder, as the whole selection minus the remote script (#1220):
| Folder | Remote script | Whole selection | Local work |
|---|---|---|---|
| 8 plain folders | 68 ms | 0.61 s | ~0.4 s |
| 300 plain folders | 1.74 s | 2.57 s | ~0.8 s |
| 20 calculations | 2.16 s | 5.93 s | ~3.8 s |
That is about 0.19 s per calculation. The tree rows and icons cost almost nothing (0.03 s for 300 rows), and getChildren was already cached. Most of the time is in setContextPanel → ProjectContextPanel::initialize, which rebuilds the mirror and reads properties for each row. It has not been profiled inside yet. At this rate a folder of 200 calculations would block the window for about 40 s. A local folder is probably affected too; this has not been checked.
To do: profile ProjectContextPanel::initialize on a folder with many calculations (local and SSH), remove the per-row cost or move it off the main thread, and add a test that bounds the selection time for a folder of N calculations.
- Lenguaje dominante
- C
- Estrellas
- 10
- Forks
- 8
- Merge medio
- 6 h 32 min
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de FriendsofECCE/ECCE
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
FriendsofECCE/ECCE#1358 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
FriendsofECCE/ECCE#1353 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
FriendsofECCE/ECCE#1348 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
FriendsofECCE/ECCE#1347 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
FriendsofECCE/ECCE#1345 ·
Todos los issues de FriendsofECCE/ECCE
Issues similares
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Life-Framework/Life-Framework#5378 ·
Los mantenedores suelen responder en 1 día
-
Bug Status: Needs Triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bug status: planned ui
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
ChupathingyCE/chupathingyce#2126 ·
Los mantenedores suelen responder en 1 día
-
good first issue simulation
Dificultad 1/5 1-3 horas Aptitud para principiantes 92/100
MarcosAsh/Lattice_Fluid_Dynamics#270 ·
Los mantenedores suelen responder en 1 día
-
needs-kind
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
falcosecurity/libs#3173 · 1 comentario ·
Los mantenedores suelen responder en 1 día