diff options
| author | Xavier Morel <xmo@odoo.com> | 2018-09-28 11:59:09 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2018-09-28 13:15:04 +0200 |
| commit | 139aa9367d4ed85790450b93c11a38ce6a3f5ef2 (patch) | |
| tree | 28015025ebe27a223495aff580458116c4aa2ac0 /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | 1c780d682ffda147ce970a64239aadf71793ba5d (diff) | |
[IMP] base_import: performances of parse_preview by way of _try_match_date_time
* reduce number of patterns: using localised month names is useless
since we're not setting the locale so it always uses the server's own
* avoid going through the entire strptime machinery: lift the bits of
TimeRE we're interested in to get regex bits out of strptime patterns
and just to an re.match to check whether value & pattern match
Further possible optimisation: cache REs and only compile user-provided
patterns dynamically.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
