fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

dragon0

I've had a thought: if I have an update function that modifies and optimizes a data structure in one branch, but doesn't need to modify it in another branch, should the second branch still apply the optimization?

The trade-off is returning a reference to the unmodified data structure vs building a semantically-equivalent structure that will have faster lookups on subsequent queries.