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

Right. But you can fit 2 floats in 8 bytes so if it's memory saving and efficiency you're after, you would use an array to avoid object creation overhead. Namedtuples are nice for their self-documenting properties though, but it's misleading to advertise them as an optimization.


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

Search: