Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> That’s unnecessarily quadratic.

Any idea why concat() doesn't optimize it? Having a refcount of 1 should be enough information to make it linear, right? Or do the GC engines not keep track of refcounts at all?



Tracing GCs usually don't have any recording of the number of pointers to a value.


Python's GC does this though?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: