Params refactor, simplified (#2300)

* always c++

* Create C++ params class

* get works

* tests hang now

* passes tests

* cleanup string formatting

* handle interrupt in blocking read

* fix memory leak

* remove unused constructor

* Use delete_db_value directly

* Rename put -> write_db_value

* filename cleanup

* no semicolons in cython

* Update common/SConscript

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* add std::string version of delete_db_value

* This is handled

* cleanup encoding

* Add clear method to clear all

* add persistent params

* fix android build

* Should be called clear_all

* only import params when needed

* set params path on manager import

* recusrively create directories

* Fix function order

* cleanup mkdirp

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 2e182e5c574ea1468678b5fd8d0597e34ed5898d
This commit is contained in:
Willem Melching
2020-10-13 16:23:23 +02:00
committed by GitHub
parent a331861873
commit 498ecbdf3c
20 changed files with 417 additions and 577 deletions
+3
View File
@@ -30,6 +30,9 @@ common/file_helpers.py
common/logging_extra.py
common/numpy_fast.py
common/params.py
common/params_pxd.pxd
common/params_pyx.pyx
common/params_pyx_setup.py
common/xattr.py
common/profiler.py
common/basedir.py