mbj4668 / pyang

An extensible YANG validator and converter in python
ISC License
530 stars 343 forks source link

Disable writing of Yacc parse tables to files #788

Closed srand closed 2 years ago

srand commented 2 years ago

When multiple Pyang instances are run in parallel, one instance may overwrite the parse table files at the same time they are read by another instance. Consequently, the second instance crashes when failing to interpret truncated Python code. By disabling writing tables to files, this race is avoided.

mbj4668 commented 2 years ago

Thank you. I made some measurements and the time it takes to regenerate the tables is negligible.