Reduce case recording overhead

Aperta
#1,331 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 7 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
matplotlib, python
Ambito
performance

Direzione di ricerca

Start by profiling the case recorder to identify where per-iteration information and other verbosity-dependent data are added; the issue does not name specific files or tests. Compare recorder output at low verbosity with VERBOSE and DEBUG, then rerun the profiling scenario. Done means lower-verbosity recording omits the specified detail and reduces overhead without removing information required at higher verbosity.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

good first issue performance

Currently Aviary spends a significant amount of time in matplotlib, this is suspected to be due to the level of detail in the case recorder.
Excerpt from a profiling run:

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
       25    3.212    0.128    3.212    0.128 {built-in method matplotlib._c_internal_utils.display_is_valid}

The total cumtime was 23.109, so ~14% of runtime was just due to this function.

We should look into reducing the amount of information added to the case recorder - if verbosity is low (below VERBOSE) we definitely shouldn't be including per-iteration information, only final optimization results. And there may be other data we want to reserved for high-verbosity-modes such as DEBUG.

Lingua principale
Python
Stelle
303
Fork
152
Merge medio
7g 14h
PR unite (30g)
10

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenMDAO/Aviary

Tutte le issue di OpenMDAO/Aviary

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.