[PR #1347] [CLOSED] Goals: Second speed improvement #3679

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

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/1347
Author: @shall0pass
Created: 7/15/2023
Status: Closed

Base: masterHead: goals_speed2


📝 Commits (5)

📊 Changes

2 files changed (+27 additions, -4 deletions)

View changed files

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

📄 Description

This reworks when the cells are filled. The function to fill the table will only happen at the end of each priority level which means I have to track the top 'To Budget' amount manually instead of doing table calls. This PR and uses a near identical function to the setZero and other functions in the actions file. This change allowed my 57 templates to be processed and filled in 850 ms, which is another 3-4x speed improvement. Overall, between both of these PRs the speed gain has been about 5x.


🔄 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/1347 **Author:** [@shall0pass](https://github.com/shall0pass) **Created:** 7/15/2023 **Status:** ❌ Closed **Base:** `master` ← **Head:** `goals_speed2` --- ### 📝 Commits (5) - [`7e36ea2`](https://github.com/actualbudget/actual/commit/7e36ea2bbd7f4628673eefa577f0a740e278c7ee) speed improvements - [`a0e63b8`](https://github.com/actualbudget/actual/commit/a0e63b8cbd6f35dddd13464cbd42a6a924629b05) lint - [`2580eb6`](https://github.com/actualbudget/actual/commit/2580eb6586592a6d873e116f950255dafd3a3c3b) release note - [`8454448`](https://github.com/actualbudget/actual/commit/8454448373db3487d7e1cc1df6cd63039e4a1535) fixup for async - [`7ababa5`](https://github.com/actualbudget/actual/commit/7ababa5e1d9c4dc36d13ba4f39676b0d6361b7b9) Merge branch 'master' into goals_speed2 ### 📊 Changes **2 files changed** (+27 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/server/budget/goaltemplates.ts` (+21 -4) ➕ `upcoming-release-notes/1347.md` (+6 -0) </details> ### 📄 Description This reworks when the cells are filled. The function to fill the table will only happen at the end of each priority level which means I have to track the top 'To Budget' amount manually instead of doing table calls. This PR and uses a near identical function to the setZero and other functions in the actions file. This change allowed my 57 templates to be processed and filled in 850 ms, which is another 3-4x speed improvement. Overall, between both of these PRs the speed gain has been about 5x. --- <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:08 -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#3679