kotlin-python icon indicating copy to clipboard operation
kotlin-python copied to clipboard

Implement DCE

Open krzema12 opened this issue 3 years ago • 2 comments

Something is already inherited from JS backend, maybe it can be reused easily. I also hope that DCE is a solution to MemoryError in MicroPython.

krzema12 avatar Jan 01 '22 11:01 krzema12

It's not trivial - enabling it with the flag produces an empty file. It needs deeper investigation.

krzema12 avatar Jan 01 '22 20:01 krzema12

I remember it worked at some point (when we had out-pir dir generated, at least). Probably a revision can be found.

Also, I remember Kotlin Team suggested that we don't reuse complex and smart KJS DCE that can still contain bugs but implement our own that just removes unused declarations but not code inside bodies.

SerVB avatar Feb 21 '22 08:02 SerVB