Rewriting Solaris Command in Python Reduced Code by 90% and Improved Performance by 17 Times
Author: Darren Moffat Translator: Xia Ye Editor: Tian Xiaoxu In the /usr/bin/listusers command, I fixed a memory allocation error that caused issues when the command was converted to 64-bit. After fixing this error, I decided to investigate whether this ancient C code could be improved by converting it to a Python implementation. This C code … Read more