d97ff6820ef4f1ee1be100435783c663fdd2090c
Before this commit, follower insertion checked if a follower was already in the thread's follower list by using `Array.prototype.includes`. Since this method must run through every item in the array to tell whether or not a follower is present, it is extremly slow with large arrays (especially since it is called for each follower). This would slow down the tab for threads having lots of follower (issue starts appering at 5k+ followers). This PR solves the issue by replacing thread follower lists by sets. With this change, inserting even 15k+ follower is almost instantaneous since the membership test is done in O(1) instead of O(n). closes odoo/odoo#127833 X-original-commit: 406c91c8cba32e01eaa8df4b7fb9d0e3ad821e9c Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
…
…
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%