[PR #1344] [MERGED] Goals: Use setZero function within goal templates for speed improvement #3677

Closed
opened 2026-02-28 20:45:07 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/1344
Author: @shall0pass
Created: 7/15/2023
Status: Merged
Merged: 7/15/2023
Merged by: @j-f1

Base: masterHead: goals_speedZero


📝 Commits (2)

  • 026675b use setZero function within goal templates
  • d00c9cf release note

📊 Changes

2 files changed (+8 additions, -6 deletions)

View changed files

📝 packages/loot-core/src/server/budget/goaltemplates.ts (+2 -6)
upcoming-release-notes/1344.md (+6 -0)

📄 Description

I have a budget with 57 templates, which causes a noticeable lag. I've used performance.now() to show that my templates take 4-4.5 seconds to calculate and fill. This PR uses the setZero function that already exists to reduce that time to 3-3.2 seconds, a substantial improvement.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/1344 **Author:** [@shall0pass](https://github.com/shall0pass) **Created:** 7/15/2023 **Status:** ✅ Merged **Merged:** 7/15/2023 **Merged by:** [@j-f1](https://github.com/j-f1) **Base:** `master` ← **Head:** `goals_speedZero` --- ### 📝 Commits (2) - [`026675b`](https://github.com/actualbudget/actual/commit/026675bfa4c0300b46198004a49d5b2d72ef35cf) use setZero function within goal templates - [`d00c9cf`](https://github.com/actualbudget/actual/commit/d00c9cfcc4b43b99624a49134c917c5052b15e0d) release note ### 📊 Changes **2 files changed** (+8 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/server/budget/goaltemplates.ts` (+2 -6) ➕ `upcoming-release-notes/1344.md` (+6 -0) </details> ### 📄 Description I have a budget with 57 templates, which causes a noticeable lag. I've used performance.now() to show that my templates take 4-4.5 seconds to calculate and fill. This PR uses the setZero function that already exists to reduce that time to 3-3.2 seconds, a substantial improvement. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-02-28 20:45:07 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#3677