Closed armoha closed 7 months ago
Rust에 __epspy__
경로랑 codeobj.linetable
만 전달하고, (Line ##)
읽고 epspy -> eps 라인 넘버 매핑 생성하는 것도 Rust 쪽에서 하는 게 나을 듯
https://github.com/PaddlePaddle/PaddleSOT/blob/develop/docs/compat/python311/co_linetable.md?plain=1
I think this is best documentation for co_linetable
Calculating linetable format takes significant time in compilation for epScript-heavy project (~10% of total time):
https://github.com/armoha/eudplib/blob/02bbbe6c04bcebcaa6e5a69c96031e53c36eb630/eudplib/epscript/linetable_calculator.py
Problem
https://github.com/armoha/eudplib/blob/02bbbe6c04bcebcaa6e5a69c96031e53c36eb630/eudplib/epscript/linetable_calculator.py#L91-L96
We should not use
dis.get_instructions(code_object)
, and instead need to deal with only linetable and epScript line number mapping.구현 전략