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: cache barcode scan result #32629
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #32629 +/- ##
===========================================
+ Coverage 63.68% 63.72% +0.04%
===========================================
Files 816 816
Lines 58260 58324 +64
===========================================
+ Hits 37102 37169 +67
+ Misses 21158 21155 -3
|
Benchmarked
So it's something! Though I recon biggest time consumer here would be the latency itself, so the locality of the server matters more than anything. Can't beat speed of light 🚀 If it's for repeat scan of same items only then even better option would be limited client side caching. |
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
* perf: cache barcode scan result * feat: BarcodeScanResult type * fix: use safe `get_value` `set_value` Co-authored-by: Ankush Menat <ankushmenat@gmail.com> (cherry picked from commit b88e850)
# [14.4.0](v14.3.1...v14.4.0) (2022-10-26) ### Bug Fixes * Advance paid amount in orders (backport [#32642](#32642)) ([#32648](#32648)) ([8a88105](8a88105)) * allow to create Sales Order from expired Quotation ([#32641](#32641)) ([ccc58f4](ccc58f4)) * Billing Address for inter-company purchase docs ([f8934fa](f8934fa)) * BOM cost update message ([e539579](e539579)) * dont update item info twice ([8876904](8876904)) * incorrect qty in material request ([da538a3](da538a3)) * number of months subscription plan ([fff9e76](fff9e76)) * overlap error not raised for job card in case of workstation with production capacity ([ed2a093](ed2a093)) * party type and party mandatory on updating outstanding ([9a5e238](9a5e238)) * searchfield not working for cuctsomer, supplier as per customize form ([fb1c307](fb1c307)) * unset contact details ([d7a65b1](d7a65b1)) ### Features * Basic Payment Ledger report ([5cb9f7b](5cb9f7b)) * Repayment schedule types for term loans ([6ce32fd](6ce32fd)) ### Performance Improvements * cache barcode scan result (backport [#32629](#32629)) ([#32672](#32672)) ([3300856](3300856))
Locally this saves ~2-5ms per scan.
Remote server: Untested.
The time saving really isn't that much, but it's something.