Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PERF] functions: return #N/A instead of throwing #3772

Closed

Conversation

LucasLefevre
Copy link
Collaborator

@LucasLefevre LucasLefevre commented Feb 29, 2024

Description:

Throwing errors is very slow compared to returning.

On an empty sheet, except 10K cells with =VLOOKUP("qsdf", B:C,1,0) in column A:

Evaluation:

  • before: 699ms
  • after:  409ms (-40%)

(average over 6 runs)

Task: : 3775565

review checklist

  • feature is organized in plugin, or UI components
  • support of duplicate sheet (deep copy)
  • in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • in model/UI: ranges are strings (to show the user)
  • undo-able commands (uses this.history.update)
  • multiuser-able commands (has inverse commands and transformations where needed)
  • new/updated/removed commands are documented
  • exportable in excel
  • translations (_t("qmsdf %s", abc))
  • unit tested
  • clean commented code
  • track breaking changes
  • doc is rebuild (npm run doc)
  • status is correct in Odoo

@robodoo
Copy link
Collaborator

robodoo commented Feb 29, 2024

@LucasLefevre LucasLefevre force-pushed the saas-17.1-faster-not-available-lookup-lul branch from c238927 to 1527172 Compare February 29, 2024 09:38
@LucasLefevre LucasLefevre force-pushed the saas-17.1-faster-not-available-lookup-lul branch from 1527172 to 4001306 Compare February 29, 2024 15:04
Throwing errors is very slow compared to returning.

On an empty sheet, except 10K `=VLOOKUP("qsdf", B:C,1,0)` in column A:

Evaluation:
before: 699ms
after:  409ms (-40%)

(average over 6 runs)

Task: 3775565
@LucasLefevre LucasLefevre force-pushed the saas-17.1-faster-not-available-lookup-lul branch from 4001306 to e55b86f Compare March 7, 2024 12:01
@rrahir
Copy link
Collaborator

rrahir commented Mar 8, 2024

@robodoo r+

robodoo pushed a commit that referenced this pull request Mar 8, 2024
Throwing errors is very slow compared to returning.

On an empty sheet, except 10K `=VLOOKUP("qsdf", B:C,1,0)` in column A:

Evaluation:
before: 699ms
after:  409ms (-40%)

(average over 6 runs)

closes #3772

Task: 3775565
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
@robodoo robodoo closed this Mar 8, 2024
@fw-bot fw-bot deleted the saas-17.1-faster-not-available-lookup-lul branch March 22, 2024 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants