Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Feature: Sum colliding entries rather than overwrite them, during read and consolidation #23

Open
dhutchis opened this issue Jun 4, 2016 · 0 comments

Comments

@dhutchis
Copy link
Contributor

dhutchis commented Jun 4, 2016

Summing entries into an array, as in A += B, is a common pattern in array and BLAS-like processing. Currently newly written cells simply overwrite old cells with the same coordinates. It would be ideal if a user could specify a function to run that sums together values instead of overwriting them. This function would probably be stored in the array metadata, perhaps accepting something of the form

void* (*plus)(void*, void*)

except that the function code ought to be serializable so that it could be stored with the array and applied to a particular attribute.

Without this feature, the workaround is to read the array first, determine colliding entries with those entries to be written, and then write back the updated entries. It has some performance implications.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant