[GRASS-git] [OSGeo/grass] e45231: r.mapcalc: fix too many open maps (#6561)

Anna Petrasova noreply at github.com
Thu Oct 30 11:45:56 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: e452310fbaf951c27e9de87fcd8b4fa86705f7cf
      https://github.com/OSGeo/grass/commit/e452310fbaf951c27e9de87fcd8b4fa86705f7cf
  Author: Anna Petrasova <kratochanna at gmail.com>
  Date:   2025-10-30 (Thu, 30 Oct 2025)

  Changed paths:
    M raster/r.mapcalc/evaluate.c
    M raster/r.mapcalc/map.c
    M raster/r.mapcalc/map3.c
    M raster/r.mapcalc/mapcalc.h

  Log Message:
  -----------
  r.mapcalc:  fix too many open maps (#6561)

This mostly reverts changes to map.c done during the parallelization, putting back the optimizations in cache and opening maps. Now map is opened once per expression and thread (e.g. " test = elevation + elevation" nprocs=3 results in opening map elevation 3x, not 6x). All cache access happens within the thread with its specific buffers and file descriptor.



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list