Skip to content

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Feb 28, 2025

Before this commit, loading the PoS with several products was slow due to inefficient data handling. The addItem function operated in O(n) time and, because it was called repeatedly over datasets, this led to major performance issues.

After this commit, addItem now runs in O(1) by using a map/dictionary approach. This significantly reduces loading times for PoS when many products are present.

opw-4584930


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #198692
Forward-Port-Of: #198123

Before this commit, loading the PoS with several products was slow due
to inefficient data handling. The `addItem` function operated in O(n)
time and, because it was called repeatedly over datasets, this led to
major performance issues.

After this commit, `addItem` now runs in O(1) by using a map/dictionary
approach. This significantly reduces loading times for PoS when many
products are present.

opw-4584930

X-original-commit: 8831add
@robodoo
Copy link
Contributor

robodoo commented Feb 28, 2025

Pull request status dashboard

@fw-bot
Copy link
Contributor Author

fw-bot commented Feb 28, 2025

@pedrambiria @caburj this PR targets master and is the last of the forward-port chain.

To merge the full chain, use

@robodoo r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Feb 28, 2025
@pedrambiria
Copy link
Contributor

@robodoo r+

@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Feb 28, 2025
@robodoo
Copy link
Contributor

robodoo commented Feb 28, 2025

@pedrambiria @caburj 'ci/runbot' failed on this reviewed PR.

@pedrambiria
Copy link
Contributor

robodoo retry

@robodoo
Copy link
Contributor

robodoo commented Feb 28, 2025

@pedrambiria retry makes no sense when the PR is not in error.

robodoo pushed a commit that referenced this pull request Feb 28, 2025
Before this commit, loading the PoS with several products was slow due
to inefficient data handling. The `addItem` function operated in O(n)
time and, because it was called repeatedly over datasets, this led to
major performance issues.

After this commit, `addItem` now runs in O(1) by using a map/dictionary
approach. This significantly reduces loading times for PoS when many
products are present.

opw-4584930

closes #199745

X-original-commit: 8831add
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
Signed-off-by: Pedram Bi Ria (pebr) <pebr@odoo.com>
@robodoo robodoo added the 18.3 label Feb 28, 2025
@robodoo robodoo closed this Feb 28, 2025
@xmo-odoo xmo-odoo deleted the master-saas-18.1-pos-opw-4584930-pebr-417762-fw branch March 7, 2025 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

18.3 forwardport This PR was created by @fw-bot OE the report is linked to a support ticket (opw-...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants